PHP 클래스 Pimcore\Model\Element\AbstractElement

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

공개 메소드들

메소드 설명
__toString ( ) : string
getCacheTag ( ) : string get the cache tag for the element
getCacheTags ( array $tags = [] ) : array Get the cache tags for the element, resolve all dependencies to tag the cache entries This is necessary to update the cache if there is a change in an depended object
getProperty ( string $name, boolean $asContainer = false ) : mixed Get specific property data or the property object itself ($asContainer=true) by its name, if the property doesn't exists return null
getUserPermissions ( ) : array
hasNoChilds ( ) : boolean Inverted hasChilds()
hasProperty ( $name ) : boolean
isAllowed ( string $type ) : boolean This is used for user-permissions, pass a permission type (eg. list, view, save) an you know if the current user is allowed to perform the requested action
isLocked ( ) : boolean Returns true if the element is locked
removeProperty ( $name )
resolveDependencies ( ) : array Resolves the dependencies of the element and returns an array of them - Used by update()
unlockPropagate ( )

메소드 상세

__toString() 공개 메소드

public __toString ( ) : string
리턴 string

getCacheTag() 공개 메소드

get the cache tag for the element
public getCacheTag ( ) : string
리턴 string

getCacheTags() 공개 메소드

Get the cache tags for the element, resolve all dependencies to tag the cache entries This is necessary to update the cache if there is a change in an depended object
public getCacheTags ( array $tags = [] ) : array
$tags array
리턴 array

getProperty() 공개 메소드

Get specific property data or the property object itself ($asContainer=true) by its name, if the property doesn't exists return null
public getProperty ( string $name, boolean $asContainer = false ) : mixed
$name string
$asContainer boolean
리턴 mixed

getUserPermissions() 공개 메소드

public getUserPermissions ( ) : array
리턴 array

hasNoChilds() 공개 메소드

Inverted hasChilds()
public hasNoChilds ( ) : boolean
리턴 boolean

hasProperty() 공개 메소드

public hasProperty ( $name ) : boolean
$name
리턴 boolean

isAllowed() 공개 메소드

This is used for user-permissions, pass a permission type (eg. list, view, save) an you know if the current user is allowed to perform the requested action
public isAllowed ( string $type ) : boolean
$type string
리턴 boolean

isLocked() 공개 메소드

Returns true if the element is locked
public isLocked ( ) : boolean
리턴 boolean

removeProperty() 공개 메소드

public removeProperty ( $name )
$name

resolveDependencies() 공개 메소드

Resolves the dependencies of the element and returns an array of them - Used by update()
public resolveDependencies ( ) : array
리턴 array

unlockPropagate() 공개 메소드

public unlockPropagate ( )