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

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

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

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

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

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

Create a the new object in database, an get the new assigned ID
public create ( )

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

Remove the object from database
public delete ( )

deleteAllMetadata() публичный Метод

deletes all metadata for the object from database
public deleteAllMetadata ( ) : void
Результат void

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

public deleteAllPermissions ( ) : void
Результат void

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

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

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

public deleteAllTasks ( ) : void
Результат void

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

Get the data for the object by id from database and assign it to the object (model)
public getById ( $id )
$id

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

Get the data for the asset from database for the given path
public getByPath ( string $path )
$path string

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

returns the amount of directly childs (not recursivly)
public getChildAmount ( User $user = null ) : integer
$user User
Результат integer

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

public getCurrentFullPath ( ) : string
Результат string retrieves the current full sset path from DB

getLatestVersion() публичный Метод

Get latest available version, using $force always returns a version no matter if it is the same as the published one
public getLatestVersion ( boolean $force = false ) : array
$force boolean
Результат array

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

Get the properties for the object from database and assign it
public getProperties ( $onlyInherited = false ) : []
Результат []

getVersions() публичный Метод

get versions from database, and assign it to object
public getVersions ( ) : array
Результат array

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

quick test if there are childs
public hasChildren ( ) : boolean
Результат boolean

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

Quick test if there are siblings
public hasSiblings ( ) : boolean
Результат boolean

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

public isAllowed ( $type, $user )

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

public isLocked ( )

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

public unlockPropagate ( )

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

Update data from object to the database
public update ( )

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

public updateChildsPaths ( $oldPath )

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

public updateWorkspaces ( )