메소드 | 설명 | |
---|---|---|
delete ( integer $id ) | Deletes a collection with a given id. | |
get ( integer $locale, array $filter = [], integer $limit = null, integer $offset = null, array $sortBy = [] ) : Doctrine\ORM\Tools\Pagination\Paginator | Returns collections with a given parent and/or a given depth-level if no arguments passed returns all collection. | |
getById ( integer $id, integer $locale, integer $depth, boolean $breadcrumb = false, array $filter = [], array $sortBy = [] ) : |
Returns a collection with a given id. | |
getByKey ( string $key, string $locale ) : |
Returns collection by key. | |
getCount ( ) : integer | Returns a collection count. | |
getFieldDescriptor ( string $key ) : |
Return the FieldDescriptors. | |
getFieldDescriptors ( ) : |
Return the FieldDescriptors. | |
getTree ( string $locale, integer $offset, integer $limit, string $search, integer $depth, array $sortBy = [], boolean $systemCollections = true ) : |
Returns collections from root with given depth. | |
getTreeById ( integer $id, string $locale ) : |
Returns tree for given id. Including all parents with sliblings and children. | |
move ( integer $id, string $locale, integer | null $destinationId = null ) : |
Moves a collection into another collection If you pass parentId = null i moves to the root. | |
save ( array $data, integer $userId ) : |
Creates a new collection or overrides an existing one. |
public get ( integer $locale, array $filter = [], integer $limit = null, integer $offset = null, array $sortBy = [] ) : Doctrine\ORM\Tools\Pagination\Paginator | ||
$locale | integer | the locale which the collection should be return |
$filter | array | for parent or depth |
$limit | integer | limit the output |
$offset | integer | offset the output |
$sortBy | array | sort by e.g. array('title' => 'ASC') |
리턴 | Doctrine\ORM\Tools\Pagination\Paginator |
public getById ( integer $id, integer $locale, integer $depth, boolean $breadcrumb = false, array $filter = [], array $sortBy = [] ) : |
||
$id | integer | the id of the collection |
$locale | integer | the locale which the collection should be return |
$depth | integer | if depth > 1 children will returned also |
$breadcrumb | boolean | if true breadcrumb will be appended |
$filter | array | array of criteria |
$sortBy | array | fields to sort by |
리턴 |
public getFieldDescriptor ( string $key ) : |
||
$key | string | |
리턴 |
public getFieldDescriptors ( ) : |
||
리턴 |
public getTree ( string $locale, integer $offset, integer $limit, string $search, integer $depth, array $sortBy = [], boolean $systemCollections = true ) : |
||
$locale | string | the locale which the collection should be return |
$offset | integer | |
$limit | integer | |
$search | string | |
$depth | integer | maximum depth for query |
$sortBy | array | |
$systemCollections | boolean | Whether or not system collectino should be included in the result |
리턴 |
public getTreeById ( integer $id, string $locale ) : |
||
$id | integer | |
$locale | string | |
리턴 |
public move ( integer $id, string $locale, integer | null $destinationId = null ) : |
||
$id | integer | the id of the category to move |
$locale | string | the locale which the collection should be return |
$destinationId | integer | null | the parent where the collection should be placed |
리턴 |