PHP 클래스 Pimcore\Model\Document

상속: extends Pimcore\Model\Element\AbstractElement
파일 보기 프로젝트 열기: pimcore/pimcore 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$childs array Contains a list of child-documents
$creationDate integer timestamp of creationdate
$dependencies Dependency 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 Document 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*

공개 메소드들

메소드 설명
__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 ) : Document 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 ) : Document | Email | Folder | Hardlink | Link | Page | Printcontainer | Printpage | Snippet | Newsletter Static helper to get a Document by it's ID
getByPath ( string $path ) : Document | Email | Folder | Hardlink | Link | Page | Printcontainer | Printpage | Snippet 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 ( ) : Dependency 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 = [] ) : Listing Returns the documents list instance.
getLocked ( ) : string Returns true if the element is locked
getModificationDate ( ) : integer Return the document modification date.
getParent ( ) : Document Returns the parent document instance.
getParentId ( ) : integer Returns the id of the parent document.
getPath ( ) : string Returns the document path.
getProperties ( ) : Property[] 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 ( ) : Document Save the document.
saveIndex ( integer $index ) : void Update the document index.
setChildren ( $children ) : array set the children of the document
setCreationDate ( integer $creationDate ) : Document Set the creation date of the document.
setHideUnpublished ( boolean $flag ) Set true if want to hide documents.
setId ( integer $id ) : Document Set the id of the document.
setIndex ( integer $index ) : Document Set the document index.
setKey ( integer $key ) : Document Set the document key.
setLocked ( $locked ) : Document Mark the document as locked.
setModificationDate ( integer $modificationDate ) : Document Set the document modification date.
setParent ( Document $parent ) : Document Set the parent document instance.
setParentId ( integer $parentId ) : Document Set the parent id of the document.
setPath ( string $path ) : Document Set the document path.
setProperties ( array $properties ) : Document Set document properties.
setProperty ( string $name, string $type, mixed $data, boolean $inherited = false, boolean $inheritable = true ) : Document Set the document property.
setPublished ( integer $published ) : Document Set the publish status of the document.
setType ( integer $type ) : Document Set the document type.
setUserModification ( integer $userModification ) : Document Set id of the user last modified the document.
setUserOwner ( integer $userOwner ) : Document Set the id of the owner user.

보호된 메소드들

메소드 설명
prepareFrontendPath ( $path ) : mixed
update ( )

메소드 상세

__sleep() 공개 메소드

public __sleep ( )

__wakeup() 공개 메소드

public __wakeup ( )

addDocumentType() 공개 정적인 메소드

Add document type to the $types array. It defines additional document types available in Pimcore.
public static addDocumentType ( $type )
$type

clearDependentCache() 공개 메소드

Clear the cache related to the document.
public clearDependentCache ( array $additionalTags = [] ) : void
$additionalTags array
리턴 void

correctPath() 공개 메소드

Validate the document path.
public correctPath ( ) : void
리턴 void

create() 공개 정적인 메소드

Static helper to quickly create a new document
public static create ( integer $parentId, array $data = [], $save = true ) : Document
$parentId integer
$data array
리턴 Document

delete() 공개 메소드

Deletes the document
public delete ( ) : void
리턴 void

doHideUnpublished() 공개 정적인 메소드

Checks if unpublished documents should be hidden.
public static doHideUnpublished ( ) : boolean
리턴 boolean

getById() 공개 정적인 메소드

Static helper to get a Document by it's ID
public static getById ( integer $id ) : Document | Email | Folder | Hardlink | Link | Page | Printcontainer | Printpage | Snippet | Newsletter
$id integer
리턴 Document | Email | Folder | Hardlink | Link | Page | Printcontainer | Printpage | Snippet | Newsletter

getByPath() 공개 정적인 메소드

Static helper to get a Document by it's path
public static getByPath ( string $path ) : Document | Email | Folder | Hardlink | Link | Page | Printcontainer | Printpage | Snippet
$path string
리턴 Document | Email | Folder | Hardlink | Link | Page | Printcontainer | Printpage | Snippet

getChildren() 공개 메소드

Get a list of the Childs (not recursivly)
public getChildren ( $unpublished = false ) : array
리턴 array

getCreationDate() 공개 메소드

Returns the document creation date.
public getCreationDate ( ) : integer
리턴 integer

getDependencies() 공개 메소드

Returns the dependencies of the document
public getDependencies ( ) : Dependency
리턴 Dependency

getFullPath() 공개 메소드

Returns the full path of the document including the key (path+key)
public getFullPath ( ) : string
리턴 string

getId() 공개 메소드

Returns the document id.
public getId ( ) : integer
리턴 integer

getIndex() 공개 메소드

Returns the document index.
public getIndex ( ) : integer
리턴 integer

getKey() 공개 메소드

Returns the document key.
public getKey ( ) : string
리턴 string

getList() 공개 정적인 메소드

Returns the documents list instance.
public static getList ( array $config = [] ) : Listing
$config array
리턴 Pimcore\Model\Document\Listing

getLocked() 공개 메소드

Returns true if the element is locked
public getLocked ( ) : string
리턴 string

getModificationDate() 공개 메소드

Return the document modification date.
public getModificationDate ( ) : integer
리턴 integer

getParent() 공개 메소드

Returns the parent document instance.
public getParent ( ) : Document
리턴 Document

getParentId() 공개 메소드

Returns the id of the parent document.
public getParentId ( ) : integer
리턴 integer

getPath() 공개 메소드

Returns the document path.
public getPath ( ) : string
리턴 string

getProperties() 공개 메소드

Get a list of properties (including the inherited)
public getProperties ( ) : Property[]
리턴 Property[]

getPublished() 공개 메소드

Checks if the document is published.
public getPublished ( ) : boolean
리턴 boolean

getRealFullPath() 공개 메소드

Returns the full real path of the document.
public getRealFullPath ( ) : string
리턴 string

getRealPath() 공개 메소드

Returns the real document path.
public getRealPath ( ) : string
리턴 string

getSiblings() 공개 메소드

Get a list of the sibling documents
public getSiblings ( boolean $unpublished = false ) : array
$unpublished boolean
리턴 array

getTotalCount() 공개 정적인 메소드

Get total count of documents.
public static getTotalCount ( array $config = [] ) : integer
$config array
리턴 integer count

getType() 공개 메소드

Returns the document type.
public getType ( ) : string
리턴 string

getTypes() 공개 정적인 메소드

get possible types
public static getTypes ( ) : string
리턴 string

getUserModification() 공개 메소드

Returns id of the user last modified the document.
public getUserModification ( ) : integer
리턴 integer

getUserOwner() 공개 메소드

Returns the id of the owner user.
public getUserOwner ( ) : integer
리턴 integer

hasChildren() 공개 메소드

Returns true if the document has at least one child
public hasChildren ( ) : boolean
리턴 boolean

hasSiblings() 공개 메소드

Returns true if the document has at least one sibling
public hasSiblings ( ) : boolean
리턴 boolean

isPublished() 공개 메소드

Checks if the document is published.
public isPublished ( ) : boolean
리턴 boolean

prepareFrontendPath() 보호된 메소드

protected prepareFrontendPath ( $path ) : mixed
$path
리턴 mixed

removeInheritedProperties() 공개 메소드

Removes all inherited properties.
public removeInheritedProperties ( ) : void
리턴 void

renewInheritedProperties() 공개 메소드

Renews all inherited properties.
public renewInheritedProperties ( ) : void
리턴 void

save() 공개 메소드

Save the document.
public save ( ) : Document
리턴 Document

saveIndex() 공개 메소드

Update the document index.
public saveIndex ( integer $index ) : void
$index integer
리턴 void

setChildren() 공개 메소드

set the children of the document
public setChildren ( $children ) : array
리턴 array

setCreationDate() 공개 메소드

Set the creation date of the document.
public setCreationDate ( integer $creationDate ) : Document
$creationDate integer
리턴 Document

setHideUnpublished() 공개 정적인 메소드

Set true if want to hide documents.
public static setHideUnpublished ( boolean $flag )
$flag boolean

setId() 공개 메소드

Set the id of the document.
public setId ( integer $id ) : Document
$id integer
리턴 Document

setIndex() 공개 메소드

Set the document index.
public setIndex ( integer $index ) : Document
$index integer
리턴 Document

setKey() 공개 메소드

Set the document key.
public setKey ( integer $key ) : Document
$key integer
리턴 Document

setLocked() 공개 메소드

Mark the document as locked.
public setLocked ( $locked ) : Document
$locked
리턴 Document

setModificationDate() 공개 메소드

Set the document modification date.
public setModificationDate ( integer $modificationDate ) : Document
$modificationDate integer
리턴 Document

setParent() 공개 메소드

Set the parent document instance.
public setParent ( Document $parent ) : Document
$parent Document
리턴 Document

setParentId() 공개 메소드

Set the parent id of the document.
public setParentId ( integer $parentId ) : Document
$parentId integer
리턴 Document

setPath() 공개 메소드

Set the document path.
public setPath ( string $path ) : Document
$path string
리턴 Document

setProperties() 공개 메소드

Set document properties.
public setProperties ( array $properties ) : Document
$properties array
리턴 Document

setProperty() 공개 메소드

Set the document property.
public setProperty ( string $name, string $type, mixed $data, boolean $inherited = false, boolean $inheritable = true ) : Document
$name string
$type string
$data mixed
$inherited boolean
$inheritable boolean
리턴 Document

setPublished() 공개 메소드

Set the publish status of the document.
public setPublished ( integer $published ) : Document
$published integer
리턴 Document

setType() 공개 메소드

Set the document type.
public setType ( integer $type ) : Document
$type integer
리턴 Document

setUserModification() 공개 메소드

Set id of the user last modified the document.
public setUserModification ( integer $userModification ) : Document
$userModification integer
리턴 Document

setUserOwner() 공개 메소드

Set the id of the owner user.
public setUserOwner ( integer $userOwner ) : Document
$userOwner integer
리턴 Document

update() 보호된 메소드

protected update ( )

프로퍼티 상세

$childs 공개적으로 프로퍼티

Contains a list of child-documents
public array $childs
리턴 array

$creationDate 공개적으로 프로퍼티

timestamp of creationdate
public int $creationDate
리턴 integer

$dependencies 공개적으로 프로퍼티

Dependencies for this document
public Dependency,Pimcore\Model $dependencies
리턴 Dependency

$hasChilds 공개적으로 프로퍼티

Indicator of document has childs or not.
public bool $hasChilds
리턴 boolean

$hasSiblings 공개적으로 프로퍼티

Indicator if document has siblings or not
public bool $hasSiblings
리턴 boolean

$id 공개적으로 프로퍼티

ID of the document
public int $id
리턴 integer

$index 공개적으로 프로퍼티

Sorter index in the tree, can also be used for generating a navigation and so on
public int $index
리턴 integer

$key 공개적으로 프로퍼티

Filename/Key of the document
public string $key
리턴 string

$locked 공개적으로 프로퍼티

Check if the document is locked.
public string $locked
리턴 string

$modificationDate 공개적으로 프로퍼티

timestamp of modificationdate
public int $modificationDate
리턴 integer

$parent 공개적으로 프로퍼티

The parent document.
public Document,Pimcore\Model $parent
리턴 Document

$parentId 공개적으로 프로퍼티

ID of the parent document, on root document this is null
public int $parentId
리턴 integer

$path 공개적으로 프로퍼티

Path to the document, not conaining the key (the full path of the parent document)
public string $path
리턴 string

$properties 공개적으로 프로퍼티

List of Property, concerning the folder
public array $properties
리턴 array

$published 공개적으로 프로퍼티

published or not
public bool $published
리턴 boolean

$siblings 공개적으로 프로퍼티

Contains a list of sibling documents
public array $siblings
리턴 array

$type 공개적으로 프로퍼티

Type of the document as string (enum) Possible values: page,snippet,link,folder
public string $type
리턴 string

$types 공개적으로 정적으로 프로퍼티

possible types of a document
public static array $types
리턴 array

$userModification 공개적으로 프로퍼티

User-ID of the user last modified the document
public int $userModification
리턴 integer

$userOwner 공개적으로 프로퍼티

User-ID of the owner
public int $userOwner
리턴 integer

$userPermissions 공개적으로 프로퍼티

Permissions for the user which requested this document in editmode*
public $userPermissions