Method |
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. |
|