Метод |
Описание |
|
create ( ) |
Create a the new object in database, an get the new assigned ID |
|
delete ( ) |
Remove the object from database |
|
deleteAllMetadata ( ) : void |
deletes all metadata for the object from database |
|
deleteAllPermissions ( ) : void |
|
|
deleteAllProperties ( ) : void |
deletes all properties for the object from database |
|
deleteAllTasks ( ) : void |
|
|
getById ( $id ) |
Get the data for the object by id from database and assign it to the object (model) |
|
getByPath ( string $path ) |
Get the data for the asset from database for the given path |
|
getChildAmount ( User $user = null ) : integer |
returns the amount of directly childs (not recursivly) |
|
getCurrentFullPath ( ) : string |
|
|
getLatestVersion ( boolean $force = false ) : array |
Get latest available version, using $force always returns a version no matter if it is the same as the published one |
|
getProperties ( $onlyInherited = false ) : [] |
Get the properties for the object from database and assign it |
|
getVersions ( ) : array |
get versions from database, and assign it to object |
|
hasChildren ( ) : boolean |
quick test if there are childs |
|
hasSiblings ( ) : boolean |
Quick test if there are siblings |
|
isAllowed ( $type, $user ) |
|
|
isLocked ( ) |
|
|
unlockPropagate ( ) |
|
|
update ( ) |
Update data from object to the database |
|
updateChildsPaths ( $oldPath ) |
|
|
updateWorkspaces ( ) |
|
|