PHP Class Pimcore\Model\Object\Concrete\Dao

Inheritance: extends Pimcore\Model\Object\AbstractObject\Dao
Show file Open project: pimcore/pimcore

Protected Properties

Property Type Description
$inheritanceHelper Pimcore\Model\Object\Concrete\Dao\InheritanceHelper

Public Methods

Method Description
delete ( ) : void Save object to database
deleteAllTasks ( ) : void
getById ( integer $id ) : void Get the data for the object from database for the given id
getData ( ) : void Get the data-elements for the object from database for the given path
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
getRelationData ( string $field, $forOwner, $remoteClassId ) : array
getRelationIds ( string $fieldName ) : array
getVersions ( ) : array get versions from database, and assign it to object
init ( )
saveChildData ( )
update ( ) : void Save changes to database, it's an good idea to use save() instead

Method Details

delete() public method

Save object to database
public delete ( ) : void
return void

deleteAllTasks() public method

public deleteAllTasks ( ) : void
return void

getById() public method

Get the data for the object from database for the given id
public getById ( integer $id ) : void
$id integer
return void

getData() public method

Get the data-elements for the object from database for the given path
public getData ( ) : void
return void

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

getRelationData() public method

public getRelationData ( string $field, $forOwner, $remoteClassId ) : array
$field string
return array

getRelationIds() public method

public getRelationIds ( string $fieldName ) : array
$fieldName string
return array

getVersions() public method

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

init() public method

public init ( )

saveChildData() public method

public saveChildData ( )

update() public method

Save changes to database, it's an good idea to use save() instead
public update ( ) : void
return void

Property Details

$inheritanceHelper protected property

protected InheritanceHelper,Pimcore\Model\Object\Concrete\Dao $inheritanceHelper
return Pimcore\Model\Object\Concrete\Dao\InheritanceHelper