class Definition extends Definition (View source)

Traits

Properties

protected AbstractDao $dao from AbstractModel
string $key from Definition
string $parentClass from Definition
string $title
string $group
array $layoutDefinitions from Definition
array $classDefinitions

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($method, $args)

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

static VarExport
__set_state($data)

No description

from VarExport
string
getKey()

No description

$this
setKey(string $key)

No description

string
getParentClass()

No description

$this
setParentClass(string $parentClass)

No description

string
getTitle()

No description

setTitle(string $title)

No description

array
getLayoutDefinitions()

No description

$this
setLayoutDefinitions(array $layoutDefinitions)

No description

array
getFieldDefinitions(array $context = [])

No description

$this
setFieldDefinitions(array $fieldDefinitions)

No description

$this
addFieldDefinition(string $key, Data $data)

No description

Data|bool
getFieldDefinition($key, array $context = [])

No description

doEnrichFieldDefinition($fieldDefinition, $context = [])

No description

extractDataDefinitions(array|Layout|Data $def)

No description

static 
getByKey($key)

No description

save()

No description

delete()

Delete Brick Definition

string
getDefinitionFile()

No description

string
getPhpClassFile()

No description

string
getInfoDocBlock()

No description

string
getGroup()

No description

setGroup(string $group)

No description

$this
setClassDefinitions($classDefinitions)

No description

array
getClassDefinitions()

No description

checkTablenames()

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($method, $args)

Parameters

$method
$args

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

static VarExport __set_state($data)

Parameters

$data

Return Value

VarExport

string getKey()

Return Value

string

$this setKey(string $key)

Parameters

string $key

Return Value

$this

string getParentClass()

Return Value

string

$this setParentClass(string $parentClass)

Parameters

string $parentClass

Return Value

$this

string getTitle()

Return Value

string

setTitle(string $title)

Parameters

string $title

array getLayoutDefinitions()

Return Value

array

$this setLayoutDefinitions(array $layoutDefinitions)

Parameters

array $layoutDefinitions

Return Value

$this

array getFieldDefinitions(array $context = [])

Parameters

array $context additional contextual data

Return Value

array

$this setFieldDefinitions(array $fieldDefinitions)

Parameters

array $fieldDefinitions

Return Value

$this

$this addFieldDefinition(string $key, Data $data)

Parameters

string $key
Data $data

Return Value

$this

Data|bool getFieldDefinition($key, array $context = [])

Parameters

$key
array $context additional contextual data

Return Value

Data|bool

doEnrichFieldDefinition($fieldDefinition, $context = [])

Parameters

$fieldDefinition
$context

extractDataDefinitions(array|Layout|Data $def)

Parameters

array|Layout|Data $def

static getByKey($key)

Parameters

$key

Exceptions

Exception

save()

Exceptions

Exception

delete()

Delete Brick Definition

protected string getDefinitionFile()

Return Value

string

protected string getPhpClassFile()

Return Value

string

protected string getInfoDocBlock()

Return Value

string

string getGroup()

Return Value

string

setGroup(string $group)

Parameters

string $group

$this setClassDefinitions($classDefinitions)

Parameters

$classDefinitions

Return Value

$this

array getClassDefinitions()

Return Value

array

checkTablenames()

Exceptions

Exception