class Dependency extends AbstractModel (View source)

Properties

protected AbstractDao $dao from AbstractModel
int $sourceId The ID of the object to get dependencies for
string $sourceType The type of the object to get dependencies for
int $requires Contains the ID/type of objects which are required for the given source object (sourceId/sourceType)
int $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

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

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

addRequirement(int $id, string $type)

Add a requirement to the source object

cleanAllForElement(ELementInterface $element)

No description

clean()

Cleanup the dependencies for current source id

int
getSourceId()

No description

array
getRequires()

No description

array
getRequiredBy()

No description

$this
setSourceId(int $sourceId)

No description

$this
setRequires(array $requires)

No description

$this
setRequiredBy(array $requiredBy)

No description

string
getSourceType()

No description

$this
setSourceType(string $sourceType)

No description

bool
isRequired()

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

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

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

Parameters

int $id
string $type

Return Value

Dependency

addRequirement(int $id, string $type)

Add a requirement to the source object

Parameters

int $id
string $type

cleanAllForElement(ELementInterface $element)

Parameters

ELementInterface $element

clean()

Cleanup the dependencies for current source id

int getSourceId()

Return Value

int

array getRequires()

Return Value

array

array getRequiredBy()

Return Value

array

$this setSourceId(int $sourceId)

Parameters

int $sourceId

Return Value

$this

$this setRequires(array $requires)

Parameters

array $requires

Return Value

$this

$this setRequiredBy(array $requiredBy)

Parameters

array $requiredBy

Return Value

$this

string getSourceType()

Return Value

string

$this setSourceType(string $sourceType)

Parameters

string $sourceType

Return Value

$this

bool isRequired()

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

Return Value

bool