collection/src/CollectionShortcuts.php

Functions

Collection_Shortcuts_NormalizeItemPerPage()

Collection_Shortcuts_NormalizeItemPerPage(  $request) 

Parameters

$request

Collection_Shortcuts_GetCollectionByNameOr404()

Collection_Shortcuts_GetCollectionByNameOr404(string  $name) : \Collection_Collection

Returns collection with given name or throws 404 not found exception if such collection does not exist.

Parameters

string $name

Throws

\Pluf_Exception_DoesNotExist

Returns

\Collection_Collection

Collection_Shortcuts_GetCollectionByName()

Collection_Shortcuts_GetCollectionByName(string  $name) : \Collection_Collection|NULL

Returns collection with given name and returns null if there is no collection with given name.

Parameters

string $name

Returns

\Collection_Collection|NULL