class Dependency extends AbstractModel (View source)

Properties

integer $sourceId The ID of the object to get dependencies for
string $sourceType The type of the object to get dependencies for
integer $requires Contains the ID/type of objects which are required for the given source object (sourceId/sourceType)
integer $requiredBy Contains the ID/type of objects that need the given source object (sourceId/sourceType)

Methods

Dao
getDao()

No description

setDao($dao)

No description

getResource() deprecated

No description

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

No description

$this
setValues(array $data = array())

No description

$this
setValue($key, $value)

No description

array
__sleep()

No description

mixed
__call($method, $args)

No description

void
__clone()

No description

array
getObjectVars()

returns object values without the dao

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 Dependency
getBySourceId(integer $id, string $type)

Static helper to get the dependencies for the given sourceId & type

void
addRequirement(integer $id, string $type)

Add a requirement to the source object

void
cleanAllForElement(ELementInterface $element)

No description

void
clean()

Cleanup the dependencies for current source id

integer
getSourceId()

No description

array
getRequires()

No description

array
getRequiredBy()

No description

$this
setSourceId(integer $sourceId)

No description

$this
setRequires(array $requires)

No description

void
setRequiredBy(array $requiredBy)

No description

string
getSourceType()

No description

void
setSourceType(string $sourceType)

No description

void
isRequired()

Check if the source object is required by an other object (an other object depends on this object)

Details

at line line 22
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

$this setValues(array $data = array())

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

void __clone()

Return Value

void

array getObjectVars()

returns object values without the dao

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

at line line 61
static Dependency getBySourceId(integer $id, string $type)

Static helper to get the dependencies for the given sourceId & type

Parameters

integer $id
string $type

Return Value

Dependency

at line line 78
void addRequirement(integer $id, string $type)

Add a requirement to the source object

Parameters

integer $id
string $type

Return Value

void

at line line 90
void cleanAllForElement(ELementInterface $element)

Parameters

ELementInterface $element

Return Value

void

at line line 100
void clean()

Cleanup the dependencies for current source id

Return Value

void

at line line 109
integer getSourceId()

Return Value

integer

at line line 117
array getRequires()

Return Value

array

at line line 125
array getRequiredBy()

Return Value

array

at line line 134
$this setSourceId(integer $sourceId)

Parameters

integer $sourceId

Return Value

$this

at line line 145
$this setRequires(array $requires)

Parameters

array $requires

Return Value

$this

at line line 156
void setRequiredBy(array $requiredBy)

Parameters

array $requiredBy

Return Value

void

at line line 166
string getSourceType()

Return Value

string

at line line 175
void setSourceType(string $sourceType)

Parameters

string $sourceType

Return Value

void

at line line 187
void isRequired()

Check if the source object is required by an other object (an other object depends on this object)

Return Value

void