class ElementMetadata extends AbstractModel (View source)

Properties

protected AbstractDao $dao from AbstractModel
protected string $elementType
protected int $elementId
protected string $fieldname
protected array $columns
array $data

Methods

Dao
getDao()

No description

setDao($dao)

No description

getResource() deprecated

No description

initDao(null $key = null, bool $forceDetection = false)

No description

static string|null
locateDaoClass(string $modelClass)

No description

$this
setValues(array $data = [])

No description

$this
setValue($key, $value)

No description

array
__sleep()

No description

mixed
__call($name, $arguments)

No description

__clone()

No description

array
getObjectVars()

returns object values without the dao

array
__debugInfo()

No description

void
beginTransaction()

No description

void
commit()

No description

void
rollBack()

No description

void
configure()

No description

array
getValidTableColumns(string $table, bool $cache)

No description

void
resetValidTableColumnsCache(string $table)

No description

__construct($fieldname, array $columns = [], null $element = null)

No description

setElementTypeAndId(string $elementType, int $elementId)

No description

save($object, string $ownertype = 'object', $ownername, $position)

No description

mixed
load(Concrete $source, $destinationId, $fieldname, $ownertype, $ownername, $position, $destinationType)

No description

$this
setFieldname($fieldname)

No description

string
getFieldname()

No description

$this
setElement(ElementInterface|null $element)

No description

getElement()

No description

string
getElementType()

No description

int
getElementId()

No description

$this
setColumns($columns)

No description

array
getColumns()

No description

mixed
__toString()

No description

Details

Dao getDao()

Return Value

Dao

AbstractModel setDao($dao)

Parameters

$dao

Return Value

AbstractModel

AbstractDao getResource() deprecated

deprecated

Return Value

AbstractDao

initDao(null $key = null, bool $forceDetection = false)

Parameters

null $key
bool $forceDetection

Exceptions

Exception

static string|null locateDaoClass(string $modelClass)

Parameters

string $modelClass

Return Value

string|null

$this setValues(array $data = [])

Parameters

array $data

Return Value

$this

$this setValue($key, $value)

Parameters

$key
$value

Return Value

$this

array __sleep()

Return Value

array

mixed __call($name, $arguments)

Parameters

$name
$arguments

Return Value

mixed

Exceptions

Exception

__clone()

array getObjectVars()

returns object values without the dao

Return Value

array

array __debugInfo()

Return Value

array

void beginTransaction()

Return Value

void

void commit()

Return Value

void

void rollBack()

Return Value

void

void configure()

Return Value

void

array getValidTableColumns(string $table, bool $cache)

Parameters

string $table
bool $cache

Return Value

array

void resetValidTableColumnsCache(string $table)

Parameters

string $table

Return Value

void

__construct($fieldname, array $columns = [], null $element = null)

Parameters

$fieldname
array $columns
null $element

Exceptions

Exception

setElementTypeAndId(string $elementType, int $elementId)

Parameters

string $elementType
int $elementId

save($object, string $ownertype = 'object', $ownername, $position)

Parameters

$object
string $ownertype
$ownername
$position

mixed load(Concrete $source, $destinationId, $fieldname, $ownertype, $ownername, $position, $destinationType)

Parameters

Concrete $source
$destinationId
$fieldname
$ownertype
$ownername
$position
$destinationType

Return Value

mixed

$this setFieldname($fieldname)

Parameters

$fieldname

Return Value

$this

string getFieldname()

Return Value

string

$this setElement(ElementInterface|null $element)

Parameters

ElementInterface|null $element

Return Value

$this

ElementInterface|null getElement()

Return Value

ElementInterface|null

string getElementType()

Return Value

string

int getElementId()

Return Value

int

$this setColumns($columns)

Parameters

$columns

Return Value

$this

array getColumns()

Return Value

array

mixed __toString()

Return Value

mixed