PHP Class Pimcore\Model\Object\AbstractObject\Dao

Inheritance: extends Pimcore\Model\Element\Dao
ファイルを表示 Open project: pimcore/pimcore Class Usage Examples

Public Methods

Method Description
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 ( )

Protected Methods

Method Description
collectParentIds ( )

Method Details

collectParentIds() protected method

protected collectParentIds ( )

create() public method

Create a new record for the object in database
public create ( ) : boolean
return boolean

delete() public method

Deletes object from database
public delete ( ) : void
return void

deleteAllPermissions() public method

public deleteAllPermissions ( ) : void
return void

deleteAllProperties() public method

deletes all properties for the object from database
public deleteAllProperties ( ) : void
return void

getById() public method

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

getByPath() public method

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

getChildAmount() public method

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
return integer

getChildPermissions() public method

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

getClasses() public method

public getClasses ( )

getCurrentFullPath() public method

public getCurrentFullPath ( ) : string
return string retrieves the current full object path from DB

getPermissions() public method

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

getProperties() public method

Get the properties for the object from database and assign it
public getProperties ( $onlyInherited = false ) : []
return []

getTypeById() public method

public getTypeById ( $id )

hasChildren() public method

Quick test if there are childs
public hasChildren ( $objectTypes = [Object::OBJECT_TYPE_OBJECT, Object::OBJECT_TYPE_FOLDER] ) : boolean
return boolean

hasChilds() public method

Deprecation:
public hasChilds ( array $objectTypes = [Object::OBJECT_TYPE_OBJECT, Object::OBJECT_TYPE_FOLDER] ) : boolean
$objectTypes array
return boolean

hasSiblings() public method

Quick test if there are siblings
public hasSiblings ( array $objectTypes = [Object::OBJECT_TYPE_OBJECT, Object::OBJECT_TYPE_FOLDER] ) : boolean
$objectTypes array
return boolean

isAllowed() public method

public isAllowed ( $type, $user )

isLocked() public method

public isLocked ( )

unlockPropagate() public method

public unlockPropagate ( )

update() public method

public update ( )

updateChildsPaths() public method

Updates the paths for children, children's properties and children's permissions in the database
public updateChildsPaths ( string $oldPath ) : void
$oldPath string
return void

updateWorkspaces() public method

public updateWorkspaces ( )