PHP Класс Pimcore\Model\Document\Dao

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

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

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

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

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

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

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

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

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

Deletes all user permissions based on the document id.
public deleteAllPermissions ( ) : void
Результат void

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

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

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

Deletes all scheduled tasks assigned to the document.
public deleteAllTasks ( ) : void
Результат void

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

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

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

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

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

Returns the amount of children (not recursively),
public getChildAmount ( User $user = null ) : integer
$user User
Результат integer

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

Returns the current full document path from the database.
public getCurrentFullPath ( ) : string
Результат string

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

Fetches the maximum index value from siblings.
public getNextIndex ( ) : string
Результат string

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

Returns properties for the object from the database and assigns these.
public getProperties ( $onlyInherited = false, $onlyDirect = false ) : []
Результат []

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

Checks if there are children.
public hasChildren ( ) : boolean
Результат boolean

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

Checks if the document has siblings
public hasSiblings ( ) : boolean
Результат boolean

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

Checks if the action is allowed.
public isAllowed ( $type, $user ) : boolean
$type
$user
Результат boolean

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

Checks if the document is locked.
public isLocked ( ) : boolean
Результат boolean

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

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

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

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

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

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

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

Updates children path in order to the old document path specified in the $oldPath parameter.
public updateChildsPaths ( $oldPath ) : array
$oldPath
Результат array

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

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

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

.
public updateWorkspaces ( )