com\setasign\SetaSite\Page
Page Class Page
File: /SetaSite/src/Page/Page.php
Class hierarchy
Summary
Methods
- __construct()
- __clone()
- __get()
- __isset()
- __set()
- getBlockManager()
- getBlocksRenderDateTime()
- getCreator()
- getId()
- getLanguage()
- getOwnPath()
- getPages()
- getParentId()
- getParentPath()
- getPath()
- getPathOrder()
- getPropertyContainer()
- getRenderData()
- getVersion()
- hasProperty()
- isTemplate()
- isValid()
- resetBlocksRenderDateTime()
- setCreator()
- setParentId()
- setPath()
- setPathOrder()
- setVersion()
- updateRenderData()
Properties
$blocksRenderDateTime
$isTemplate
Static Methods
createByRow()
\com\setasign\SetaFramework\Config\Config $config,
\com\setasign\SetaFramework\Database\Table\Row $row
Parameters
- $pages : Pages
- $config : \com\setasign\SetaFramework\Config\Config
- $row : \com\setasign\SetaFramework\Database\Table\Row
Methods
__construct()
string $language,
bool $isTemplate,
\com\setasign\SetaFramework\Config\Config $config,
array $data = array ( ),
array $blockData = array ( )
Parameters
- $pages : Pages
- $language : string
- $isTemplate : bool
- $config : \com\setasign\SetaFramework\Config\Config
- $data : array
- $blockData : array
getRenderData()
Return Values
Entries: templateFile
Exceptions
Throws \com\setasign\SetaSite\PropertyContainer\InvalidValueException
Throws UnknownPageException
Throws \com\setasign\SetaFramework\Exception
Throws \com\setasign\SetaSite\BlockManager\BlockFinalException
Throws \com\setasign\SetaSite\BlockManager\UnknownBlockException
isValid()
Parameters
- $result : array
Exceptions
Throws \com\setasign\SetaSite\BlockManager\UnknownBlockException
setParentId()
Parameters
- $parentId : int
Exceptions
Throws \com\setasign\SetaSite\PropertyContainer\InvalidValueException If the parent is invalid.
setVersion()
Sets the version.
Beware of this method! If you change this entry on an already existing page and save the page, you will create a new page and the old page will stay.
Parameters
- $version : int<\0, \1>
updateRenderData()
If you call this method you shouldn't have a changed template or changed blocks!
Parameters
- $changedPossible : bool
Exceptions
Throws \com\setasign\SetaSite\PropertyContainer\InvalidValueException
Throws UnknownPageException
Throws \com\setasign\SetaFramework\Exception
Throws \com\setasign\SetaSite\BlockManager\BlockFinalException
Throws \com\setasign\SetaSite\BlockManager\UnknownBlockException
