StructureRepository
Table of Contents
Constants
- STRUCTURE_ID_CACHE_KEY = 'structure/id/%d'
- STRUCTURE_XML_ID_CACHE_KEY = 'structure/xml_id/%s'
Methods
- create() : Structure
- delete() : void
- findAllByType() : StructureCollection
- getById() : Structure|null
- getByXmlId() : Structure|null
- list() : StructureCollection
- update() : Structure
Constants
STRUCTURE_ID_CACHE_KEY
public
mixed
STRUCTURE_ID_CACHE_KEY
= 'structure/id/%d'
STRUCTURE_XML_ID_CACHE_KEY
public
mixed
STRUCTURE_XML_ID_CACHE_KEY
= 'structure/xml_id/%s'
Methods
create()
public
create(Structure $structure) : Structure
Parameters
- $structure : Structure
Tags
Return values
Structuredelete()
public
delete(Structure $structure) : void
Parameters
- $structure : Structure
Tags
findAllByType()
public
findAllByType(StructureType $type) : StructureCollection
Parameters
- $type : StructureType
Tags
Return values
StructureCollectiongetById()
public
getById(int $id) : Structure|null
Parameters
- $id : int
Return values
Structure|nullgetByXmlId()
public
getByXmlId(string $xmlId) : Structure|null
Parameters
- $xmlId : string
Return values
Structure|nulllist()
public
list([int $limit = 50 ][, int $offset = 0 ]) : StructureCollection
Parameters
- $limit : int = 50
- $offset : int = 0
Return values
StructureCollectionupdate()
public
update(Structure $structure) : Structure
Parameters
- $structure : Structure