class Product extends Tag

Class Product

Properties

int $id Contains the ID of the linked object.
Document $o Contains the object.
string $type Contains the type.
string $subtype Contains the subtype.

Methods

string
getType()

get type.

mixed
getData()

get data.

mixed
getDataEditmode()

Converts the data so it's suitable for the editmode.

string
frontend()

frontend.

setDataFromResource( mixed $data)

set data from resource.

setDataFromEditmode( mixed $data)

set data from editmode.

setElement()

Sets the element by the data stored for the object.

array
resolveDependencies()

resolve deps.

string|bool
getObjectType( mixed $object = null)

get correct type of object as string.

bool
isEmpty()

is empty.

bool
checkValidity()

check valid.

array
__sleep()

prepare to sleep.

load()

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

Renderlet
setId( int $id)

No description

int
getId()

No description

Renderlet
setO( Asset|Document|object $o)

No description

Asset|Document|object
getO()

No description

Renderlet
setSubtype( string $subtype)

No description

string
getSubtype()

No description

rewriteIds( array $idMapping)

Rewrites id from source to target, $idMapping contains array( "document" => array( SOURCEID => TARGETID, SOURCEID => TARGETID ), "object" => array(.

Details

at line line 65
string getType()

get type.

Return Value

string

See also

Document\Tag\TagInterface::getType

at line line 77
mixed getData()

get data.

Return Value

mixed

See also

Document\Tag\TagInterface::getData

at line line 91
mixed getDataEditmode()

Converts the data so it's suitable for the editmode.

Return Value

mixed

at line line 111
string frontend()

frontend.

Return Value

string

See also

Document\Tag\TagInterface::frontend

at line line 128
Product setDataFromResource( mixed $data)

set data from resource.

Parameters

mixed $data

Return Value

Product

See also

Document\Tag\TagInterface::setDataFromResource

at line line 150
Product setDataFromEditmode( mixed $data)

set data from editmode.

Parameters

mixed $data

Return Value

Product

See also

Document\Tag\TagInterface::setDataFromEditmode

at line line 164
setElement()

Sets the element by the data stored for the object.

at line line 176
array resolveDependencies()

resolve deps.

Return Value

array

at line line 202
string|bool getObjectType( mixed $object = null)

get correct type of object as string.

Parameters

mixed $object

Return Value

string|bool

at line line 221
bool isEmpty()

is empty.

Return Value

bool

at line line 237
bool checkValidity()

check valid.

Return Value

bool

at line line 260
array __sleep()

prepare to sleep.

Return Value

array

at line line 277
load()

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

at line line 289
Renderlet setId( int $id)

Parameters

int $id

Return Value

Renderlet

at line line 299
int getId()

Return Value

int

at line line 309
Renderlet setO( Asset|Document|object $o)

Parameters

Asset|Document|object $o

Return Value

Renderlet

at line line 319
Asset|Document|object getO()

Return Value

Asset|Document|object

at line line 329
Renderlet setSubtype( string $subtype)

Parameters

string $subtype

Return Value

Renderlet

at line line 339
string getSubtype()

Return Value

string

at line line 357
rewriteIds( array $idMapping)

Rewrites id from source to target, $idMapping contains array( "document" => array( SOURCEID => TARGETID, SOURCEID => TARGETID ), "object" => array(.

..), "asset" => array(...) ).

Parameters

array $idMapping