PHP Класс Pimcore\Model\Element\AbstractElement

Наследование: extends Pimcore\Model\AbstractModel, implements Pimcore\Model\Element\ElementInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 ( )