PHP Class Pimcore\Model\Document\Dao

Inheritance: extends Pimcore\Model\Element\Dao, use trait Pimcore\Model\Element\ChildsCompatibilityTrait
Afficher le fichier Open project: pimcore/pimcore Class Usage Examples

Méthodes publiques

Méthode Description
create ( ) Insert a new row to the database.
delete ( ) Delete the row from the database. (based on the model id)
deleteAllPermissions ( ) : void Deletes all user permissions based on the document id.
deleteAllProperties ( ) : void Deletes all object properties from the database.
deleteAllTasks ( ) : void Deletes all scheduled tasks assigned to the document.
getById ( $id ) Fetch a row by an id from the database and assign variables to the document model.
getByPath ( $path ) Fetch a row by a path from the database and assign variables to the model.
getChildAmount ( User $user = null ) : integer Returns the amount of children (not recursively),
getCurrentFullPath ( ) : string Returns the current full document path from the database.
getNextIndex ( ) : string Fetches the maximum index value from siblings.
getProperties ( $onlyInherited = false, $onlyDirect = false ) : [] Returns properties for the object from the database and assigns these.
hasChildren ( ) : boolean Checks if there are children.
hasSiblings ( ) : boolean Checks if the document has siblings
isAllowed ( $type, $user ) : boolean Checks if the action is allowed.
isLocked ( ) : boolean Checks if the document is locked.
saveIndex ( $index ) Save the document index.
unlockPropagate ( ) Deletes locks from the document and its children.
update ( ) Update the row in the database. (based on the model id)
updateChildsPaths ( $oldPath ) : array Updates children path in order to the old document path specified in the $oldPath parameter.
updateLocks ( ) Update the lock value for the document.
updateWorkspaces ( ) Update document workspaces.

Method Details

create() public méthode

Insert a new row to the database.
public create ( )

delete() public méthode

Delete the row from the database. (based on the model id)
public delete ( )

deleteAllPermissions() public méthode

Deletes all user permissions based on the document id.
public deleteAllPermissions ( ) : void
Résultat void

deleteAllProperties() public méthode

Deletes all object properties from the database.
public deleteAllProperties ( ) : void
Résultat void

deleteAllTasks() public méthode

Deletes all scheduled tasks assigned to the document.
public deleteAllTasks ( ) : void
Résultat void

getById() public méthode

Fetch a row by an id from the database and assign variables to the document model.
public getById ( $id )
$id

getByPath() public méthode

Fetch a row by a path from the database and assign variables to the model.
public getByPath ( $path )
$path

getChildAmount() public méthode

Returns the amount of children (not recursively),
public getChildAmount ( User $user = null ) : integer
$user User
Résultat integer

getCurrentFullPath() public méthode

Returns the current full document path from the database.
public getCurrentFullPath ( ) : string
Résultat string

getNextIndex() public méthode

Fetches the maximum index value from siblings.
public getNextIndex ( ) : string
Résultat string

getProperties() public méthode

Returns properties for the object from the database and assigns these.
public getProperties ( $onlyInherited = false, $onlyDirect = false ) : []
Résultat []

hasChildren() public méthode

Checks if there are children.
public hasChildren ( ) : boolean
Résultat boolean

hasSiblings() public méthode

Checks if the document has siblings
public hasSiblings ( ) : boolean
Résultat boolean

isAllowed() public méthode

Checks if the action is allowed.
public isAllowed ( $type, $user ) : boolean
$type
$user
Résultat boolean

isLocked() public méthode

Checks if the document is locked.
public isLocked ( ) : boolean
Résultat boolean

saveIndex() public méthode

Save the document index.
public saveIndex ( $index )
$index

unlockPropagate() public méthode

Deletes locks from the document and its children.
public unlockPropagate ( )

update() public méthode

Update the row in the database. (based on the model id)
public update ( )

updateChildsPaths() public méthode

Updates children path in order to the old document path specified in the $oldPath parameter.
public updateChildsPaths ( $oldPath ) : array
$oldPath
Résultat array

updateLocks() public méthode

Update the lock value for the document.
public updateLocks ( )

updateWorkspaces() public méthode

.
public updateWorkspaces ( )