PHP Класс Pimcore\Model\Object\AbstractObject\Dao

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

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

Метод Описание
create ( ) : boolean Create a new record for the object in database
delete ( ) : void Deletes object from database
deleteAllPermissions ( ) : void
deleteAllProperties ( ) : void deletes all properties for the object from database
getById ( integer $id ) Get the data for the object from database for the given id
getByPath ( string $path ) Get the data for the object from database for the given path
getChildAmount ( $objectTypes = [Object::OBJECT_TYPE_OBJECT, Object::OBJECT_TYPE_FOLDER], User $user = null ) : integer returns the amount of directly childs (not recursivly)
getChildPermissions ( $type, $user, $quote = true )
getClasses ( )
getCurrentFullPath ( ) : string
getPermissions ( $type, $user, $quote = true )
getProperties ( $onlyInherited = false ) : [] Get the properties for the object from database and assign it
getTypeById ( $id )
hasChildren ( $objectTypes = [Object::OBJECT_TYPE_OBJECT, Object::OBJECT_TYPE_FOLDER] ) : boolean Quick test if there are childs
hasChilds ( array $objectTypes = [Object::OBJECT_TYPE_OBJECT, Object::OBJECT_TYPE_FOLDER] ) : boolean
hasSiblings ( array $objectTypes = [Object::OBJECT_TYPE_OBJECT, Object::OBJECT_TYPE_FOLDER] ) : boolean Quick test if there are siblings
isAllowed ( $type, $user )
isLocked ( )
unlockPropagate ( )
update ( )
updateChildsPaths ( string $oldPath ) : void Updates the paths for children, children's properties and children's permissions in the database
updateWorkspaces ( )

Защищенные методы

Метод Описание
collectParentIds ( )

Описание методов

collectParentIds() защищенный метод

protected collectParentIds ( )

create() публичный метод

Create a new record for the object in database
public create ( ) : boolean
Результат boolean

delete() публичный метод

Deletes object from database
public delete ( ) : void
Результат void

deleteAllPermissions() публичный метод

public deleteAllPermissions ( ) : void
Результат void

deleteAllProperties() публичный метод

deletes all properties for the object from database
public deleteAllProperties ( ) : void
Результат void

getById() публичный метод

Get the data for the object from database for the given id
public getById ( integer $id )
$id integer

getByPath() публичный метод

Get the data for the object from database for the given path
public getByPath ( string $path )
$path string

getChildAmount() публичный метод

returns the amount of directly childs (not recursivly)
public getChildAmount ( $objectTypes = [Object::OBJECT_TYPE_OBJECT, Object::OBJECT_TYPE_FOLDER], User $user = null ) : integer
$user User
Результат integer

getChildPermissions() публичный метод

public getChildPermissions ( $type, $user, $quote = true )

getClasses() публичный метод

public getClasses ( )

getCurrentFullPath() публичный метод

public getCurrentFullPath ( ) : string
Результат string retrieves the current full object path from DB

getPermissions() публичный метод

public getPermissions ( $type, $user, $quote = true )

getProperties() публичный метод

Get the properties for the object from database and assign it
public getProperties ( $onlyInherited = false ) : []
Результат []

getTypeById() публичный метод

public getTypeById ( $id )

hasChildren() публичный метод

Quick test if there are childs
public hasChildren ( $objectTypes = [Object::OBJECT_TYPE_OBJECT, Object::OBJECT_TYPE_FOLDER] ) : boolean
Результат boolean

hasChilds() публичный метод

Устаревший:
public hasChilds ( array $objectTypes = [Object::OBJECT_TYPE_OBJECT, Object::OBJECT_TYPE_FOLDER] ) : boolean
$objectTypes array
Результат boolean

hasSiblings() публичный метод

Quick test if there are siblings
public hasSiblings ( array $objectTypes = [Object::OBJECT_TYPE_OBJECT, Object::OBJECT_TYPE_FOLDER] ) : boolean
$objectTypes array
Результат boolean

isAllowed() публичный метод

public isAllowed ( $type, $user )

isLocked() публичный метод

public isLocked ( )

unlockPropagate() публичный метод

public unlockPropagate ( )

update() публичный метод

public update ( )

updateChildsPaths() публичный метод

Updates the paths for children, children's properties and children's permissions in the database
public updateChildsPaths ( string $oldPath ) : void
$oldPath string
Результат void

updateWorkspaces() публичный метод

public updateWorkspaces ( )