PHP Class Pimcore\Model\Element\AbstractElement

Inheritance: extends Pimcore\Model\AbstractModel, implements Pimcore\Model\Element\ElementInterface
Afficher le fichier Open project: pimcore/pimcore Class Usage Examples

Méthodes publiques

Méthode Description
__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 ( )

Method Details

__toString() public méthode

public __toString ( ) : string
Résultat string

getCacheTag() public méthode

get the cache tag for the element
public getCacheTag ( ) : string
Résultat string

getCacheTags() public méthode

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
Résultat array

getProperty() public méthode

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
Résultat mixed

getUserPermissions() public méthode

public getUserPermissions ( ) : array
Résultat array

hasNoChilds() public méthode

Inverted hasChilds()
public hasNoChilds ( ) : boolean
Résultat boolean

hasProperty() public méthode

public hasProperty ( $name ) : boolean
$name
Résultat boolean

isAllowed() public méthode

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
Résultat boolean

isLocked() public méthode

Returns true if the element is locked
public isLocked ( ) : boolean
Résultat boolean

removeProperty() public méthode

public removeProperty ( $name )
$name

resolveDependencies() public méthode

Resolves the dependencies of the element and returns an array of them - Used by update()
public resolveDependencies ( ) : array
Résultat array

unlockPropagate() public méthode

public unlockPropagate ( )