Property | Type | Description | |
---|---|---|---|
$childs | array | Contains a list of child-documents | |
$creationDate | integer | timestamp of creationdate | |
$dependencies | Dependencies for this document | ||
$hasChilds | boolean | Indicator of document has childs or not. | |
$hasSiblings | boolean | Indicator if document has siblings or not | |
$id | integer | ID of the document | |
$index | integer | Sorter index in the tree, can also be used for generating a navigation and so on | |
$key | string | Filename/Key of the document | |
$locked | string | Check if the document is locked. | |
$modificationDate | integer | timestamp of modificationdate | |
$parent | The parent document. | ||
$parentId | integer | ID of the parent document, on root document this is null | |
$path | string | Path to the document, not conaining the key (the full path of the parent document) | |
$properties | array | List of Property, concerning the folder | |
$published | boolean | published or not | |
$siblings | array | Contains a list of sibling documents | |
$type | string | Type of the document as string (enum) Possible values: page,snippet,link,folder | |
$types | array | possible types of a document | |
$userModification | integer | User-ID of the user last modified the document | |
$userOwner | integer | User-ID of the owner | |
$userPermissions | Permissions for the user which requested this document in editmode* |
Method | Description | |
---|---|---|
__sleep ( ) | ||
__wakeup ( ) | ||
addDocumentType ( $type ) | Add document type to the $types array. It defines additional document types available in Pimcore. | |
clearDependentCache ( array $additionalTags = [] ) : void | Clear the cache related to the document. | |
correctPath ( ) : void | Validate the document path. | |
create ( integer $parentId, array $data = [], $save = true ) : |
Static helper to quickly create a new document | |
delete ( ) : void | Deletes the document | |
doHideUnpublished ( ) : boolean | Checks if unpublished documents should be hidden. | |
getById ( integer $id ) : |
Static helper to get a Document by it's ID | |
getByPath ( string $path ) : |
Static helper to get a Document by it's path | |
getChildren ( $unpublished = false ) : array | Get a list of the Childs (not recursivly) | |
getCreationDate ( ) : integer | Returns the document creation date. | |
getDependencies ( ) : |
Returns the dependencies of the document | |
getFullPath ( ) : string | Returns the full path of the document including the key (path+key) | |
getId ( ) : integer | Returns the document id. | |
getIndex ( ) : integer | Returns the document index. | |
getKey ( ) : string | Returns the document key. | |
getList ( array $config = [] ) : |
Returns the documents list instance. | |
getLocked ( ) : string | Returns true if the element is locked | |
getModificationDate ( ) : integer | Return the document modification date. | |
getParent ( ) : |
Returns the parent document instance. | |
getParentId ( ) : integer | Returns the id of the parent document. | |
getPath ( ) : string | Returns the document path. | |
getProperties ( ) : |
Get a list of properties (including the inherited) | |
getPublished ( ) : boolean | Checks if the document is published. | |
getRealFullPath ( ) : string | Returns the full real path of the document. | |
getRealPath ( ) : string | Returns the real document path. | |
getSiblings ( boolean $unpublished = false ) : array | Get a list of the sibling documents | |
getTotalCount ( array $config = [] ) : integer | Get total count of documents. | |
getType ( ) : string | Returns the document type. | |
getTypes ( ) : string | get possible types | |
getUserModification ( ) : integer | Returns id of the user last modified the document. | |
getUserOwner ( ) : integer | Returns the id of the owner user. | |
hasChildren ( ) : boolean | Returns true if the document has at least one child | |
hasSiblings ( ) : boolean | Returns true if the document has at least one sibling | |
isPublished ( ) : boolean | Checks if the document is published. | |
removeInheritedProperties ( ) : void | Removes all inherited properties. | |
renewInheritedProperties ( ) : void | Renews all inherited properties. | |
save ( ) : |
Save the document. | |
saveIndex ( integer $index ) : void | Update the document index. | |
setChildren ( $children ) : array | set the children of the document | |
setCreationDate ( integer $creationDate ) : |
Set the creation date of the document. | |
setHideUnpublished ( boolean $flag ) | Set true if want to hide documents. | |
setId ( integer $id ) : |
Set the id of the document. | |
setIndex ( integer $index ) : |
Set the document index. | |
setKey ( integer $key ) : |
Set the document key. | |
setLocked ( $locked ) : |
Mark the document as locked. | |
setModificationDate ( integer $modificationDate ) : |
Set the document modification date. | |
setParent ( |
Set the parent document instance. | |
setParentId ( integer $parentId ) : |
Set the parent id of the document. | |
setPath ( string $path ) : |
Set the document path. | |
setProperties ( array $properties ) : |
Set document properties. | |
setProperty ( string $name, string $type, mixed $data, boolean $inherited = false, boolean $inheritable = true ) : |
Set the document property. | |
setPublished ( integer $published ) : |
Set the publish status of the document. | |
setType ( integer $type ) : |
Set the document type. | |
setUserModification ( integer $userModification ) : |
Set id of the user last modified the document. | |
setUserOwner ( integer $userOwner ) : |
Set the id of the owner user. |
Method | Description | |
---|---|---|
prepareFrontendPath ( $path ) : mixed | ||
update ( ) |
public static addDocumentType ( $type ) | ||
$type |
public clearDependentCache ( array $additionalTags = [] ) : void | ||
$additionalTags | array | |
return | void |
public static doHideUnpublished ( ) : boolean | ||
return | boolean |
public getChildren ( $unpublished = false ) : array | ||
return | array |
public getCreationDate ( ) : integer | ||
return | integer |
public getDependencies ( ) : |
||
return |
public getFullPath ( ) : string | ||
return | string |
public getModificationDate ( ) : integer | ||
return | integer |
public getParent ( ) : |
||
return |
public getParentId ( ) : integer | ||
return | integer |
public getProperties ( ) : |
||
return |
public getPublished ( ) : boolean | ||
return | boolean |
public getRealFullPath ( ) : string | ||
return | string |
public getRealPath ( ) : string | ||
return | string |
public getSiblings ( boolean $unpublished = false ) : array | ||
$unpublished | boolean | |
return | array |
public static getTotalCount ( array $config = [] ) : integer | ||
$config | array | |
return | integer | count |
public getUserModification ( ) : integer | ||
return | integer |
public getUserOwner ( ) : integer | ||
return | integer |
public hasChildren ( ) : boolean | ||
return | boolean |
public hasSiblings ( ) : boolean | ||
return | boolean |
public isPublished ( ) : boolean | ||
return | boolean |
protected prepareFrontendPath ( $path ) : mixed | ||
$path | ||
return | mixed |
public removeInheritedProperties ( ) : void | ||
return | void |
public renewInheritedProperties ( ) : void | ||
return | void |
public setChildren ( $children ) : array | ||
return | array |
public setCreationDate ( integer $creationDate ) : |
||
$creationDate | integer | |
return |
public static setHideUnpublished ( boolean $flag ) | ||
$flag | boolean |
public setLocked ( $locked ) : |
||
$locked | ||
return |
public setModificationDate ( integer $modificationDate ) : |
||
$modificationDate | integer | |
return |
public setParent ( |
||
$parent | ||
return |
public setParentId ( integer $parentId ) : |
||
$parentId | integer | |
return |
public setProperties ( array $properties ) : |
||
$properties | array | |
return |
public setPublished ( integer $published ) : |
||
$published | integer | |
return |
public setUserModification ( integer $userModification ) : |
||
$userModification | integer | |
return |
public setUserOwner ( integer $userOwner ) : |
||
$userOwner | integer | |
return |
public Dependency,Pimcore\Model $dependencies | ||
return |
public bool $hasChilds | ||
return | boolean |
public bool $hasSiblings | ||
return | boolean |
public int $index | ||
return | integer |
public int $modificationDate | ||
return | integer |
public Document,Pimcore\Model $parent | ||
return |
public int $parentId | ||
return | integer |
public string $path | ||
return | string |
public array $properties | ||
return | array |
public array $siblings | ||
return | array |
public string $type | ||
return | string |
public static array $types | ||
return | array |
public int $userModification | ||
return | integer |