Property | Type | Description | |
---|---|---|---|
$entityKey | |||
$entityName |
Method | Description | |
---|---|---|
cgetAction ( |
Returns the whole category graph. | |
deleteAction ( $id ) : |
Deletes the category which is assigned to the given id. | |
getAction ( $id, |
Returns the category which is assigned to the given id. | |
getChildrenAction ( mixed $parentId, |
Returns the sub-graph below the category which is assigned to the given parentId. | |
getFieldsAction ( |
Returns all fields that can be used by list. | |
getSecurityContext ( ) | ||
patchAction ( |
Partly updates the category which is assigned to the given id. | |
postAction ( |
Adds a new category. | |
putAction ( $id, |
Updates the category which is assigned to the given id. |
Method | Description | |
---|---|---|
getListRepresentation ( |
Returns a category-list-representation for the category graph respective to the request. | |
saveCategory ( |
Creates or updates a category based on the request. |
Method | Description | |
---|---|---|
getCategoryManager ( ) : Sulu\Bundle\CategoryBundle\Category\CategoryManagerInterface | Returns the CategoryManager. | |
initializeListBuilder ( $locale ) : |
Initializes and returns a ListBuilder instance which is used when returning a CategoryListRepresentation for the given locale. The returned ListBuilder is initialized with the request-parameters and respective select fields. |
public cgetAction ( |
||
$request | ||
return |
public deleteAction ( $id ) : |
||
$id | ||
return |
public getAction ( $id, |
||
$id | ||
$request | ||
return |
public getChildrenAction ( mixed $parentId, |
||
$parentId | mixed | |
$request | ||
return |
public getFieldsAction ( |
||
$request | ||
return | mixed |
protected getListRepresentation ( |
||
$request | ||
$locale | ||
$parentId | null | |
$expandIds | array | |
return |
public patchAction ( |
||
$request | ||
$id | ||
return |
public postAction ( |
||
$request | ||
return |
public putAction ( $id, |
||
$id | ||
$request | ||
return |
protected saveCategory ( |
||
$request | ||
$id | null | |
$patch | boolean | |
return |