PHP Class Pimcore\Model\Document\Tag\Snippet

Inheritance: extends Pimcore\Model\Document\Tag
Show file Open project: pimcore/pimcore

Public Properties

Property Type Description
$id integer Contains the ID of the linked snippet
$snippet Pimcore\Model\Document\Snippet Contains the object for the snippet

Public Methods

Method Description
__sleep ( ) : array
frontend ( ) : string
getData ( ) : mixed
getDataEditmode ( ) : mixed Converts the data so it's suitable for the editmode
getFromWebserviceImport ( Pimcore\Model\Webservice\Data\Document\Element $wsElement, $document = null, mixed $params = [], null $idMapper = null )
getId ( ) : integer
getSnippet ( ) : Snippet
getType ( ) : string
isEmpty ( ) : boolean
load ( ) : void this method is called by Document\Service::loadAllDocumentFields() to load all lazy loading fields
resolveDependencies ( ) : array
rewriteIds ( array $idMapping ) : void Rewrites id from source to target, $idMapping contains array( "document" => array( SOURCE_ID => TARGET_ID, SOURCE_ID => TARGET_ID ), "object" => array(.
setDataFromEditmode ( mixed $data ) : void
setDataFromResource ( mixed $data )
setId ( integer $id )
setSnippet ( Snippet $snippet )

Method Details

__sleep() public method

public __sleep ( ) : array
return array

frontend() public method

See also: Document\Tag\TagInterface::frontend
public frontend ( ) : string
return string

getData() public method

See also: Document\Tag\TagInterface::getData
public getData ( ) : mixed
return mixed

getDataEditmode() public method

Converts the data so it's suitable for the editmode
public getDataEditmode ( ) : mixed
return mixed

getFromWebserviceImport() public method

public getFromWebserviceImport ( Pimcore\Model\Webservice\Data\Document\Element $wsElement, $document = null, mixed $params = [], null $idMapper = null )
$wsElement Pimcore\Model\Webservice\Data\Document\Element
$params mixed
$idMapper null

getId() public method

public getId ( ) : integer
return integer

getSnippet() public method

public getSnippet ( ) : Snippet
return Pimcore\Model\Document\Snippet

getType() public method

See also: Document\Tag\TagInterface::getType
public getType ( ) : string
return string

isEmpty() public method

public isEmpty ( ) : boolean
return boolean

load() public method

this method is called by Document\Service::loadAllDocumentFields() to load all lazy loading fields
public load ( ) : void
return void

resolveDependencies() public method

public resolveDependencies ( ) : array
return array

rewriteIds() public method

..), "asset" => array(...) )
public rewriteIds ( array $idMapping ) : void
$idMapping array
return void

setDataFromEditmode() public method

See also: Document\Tag\TagInterface::setDataFromEditmode
public setDataFromEditmode ( mixed $data ) : void
$data mixed
return void

setDataFromResource() public method

See also: Document\Tag\TagInterface::setDataFromResource
public setDataFromResource ( mixed $data )
$data mixed

setId() public method

public setId ( integer $id )
$id integer

setSnippet() public method

public setSnippet ( Snippet $snippet )
$snippet Pimcore\Model\Document\Snippet

Property Details

$id public property

Contains the ID of the linked snippet
public int $id
return integer

$snippet public property

Contains the object for the snippet
public Snippet,Pimcore\Model\Document $snippet
return Pimcore\Model\Document\Snippet