PHP 클래스 Pimcore\Model\Object\AbstractObject\Dao

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

공개 메소드들

메소드 설명
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 ( )