PHP Class Pimcore\Model\Asset\Dao

Inheritance: extends Pimcore\Model\Element\Dao, use trait Pimcore\Model\Element\ChildsCompatibilityTrait
Datei anzeigen Open project: pimcore/pimcore

Public Methods

Method Description
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 ( )

Method Details

create() public method

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

delete() public method

Remove the object from database
public delete ( )

deleteAllMetadata() public method

deletes all metadata for the object from database
public deleteAllMetadata ( ) : void
return void

deleteAllPermissions() public method

public deleteAllPermissions ( ) : void
return void

deleteAllProperties() public method

deletes all properties for the object from database
public deleteAllProperties ( ) : void
return void

deleteAllTasks() public method

public deleteAllTasks ( ) : void
return void

getById() public method

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

getByPath() public method

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

getChildAmount() public method

returns the amount of directly childs (not recursivly)
public getChildAmount ( User $user = null ) : integer
$user User
return integer

getCurrentFullPath() public method

public getCurrentFullPath ( ) : string
return string retrieves the current full sset path from DB

getLatestVersion() public method

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
return array

getProperties() public method

Get the properties for the object from database and assign it
public getProperties ( $onlyInherited = false ) : []
return []

getVersions() public method

get versions from database, and assign it to object
public getVersions ( ) : array
return array

hasChildren() public method

quick test if there are childs
public hasChildren ( ) : boolean
return boolean

hasSiblings() public method

Quick test if there are siblings
public hasSiblings ( ) : boolean
return boolean

isAllowed() public method

public isAllowed ( $type, $user )

isLocked() public method

public isLocked ( )

unlockPropagate() public method

public unlockPropagate ( )

update() public method

Update data from object to the database
public update ( )

updateChildsPaths() public method

public updateChildsPaths ( $oldPath )

updateWorkspaces() public method

public updateWorkspaces ( )