Property | Type | Description | |
---|---|---|---|
$requiredBy | integer | Contains the ID/type of objects that need the given source object (sourceId/sourceType) | |
$requires | integer | Contains the ID/type of objects which are required for the given source object (sourceId/sourceType) | |
$sourceId | integer | The ID of the object to get dependencies for | |
$sourceType | string | The type of the object to get dependencies for |
Method | Description | |
---|---|---|
addRequirement ( integer $id, string $type ) : void | Add a requirement to the source object | |
clean ( ) : void | Cleanup the dependencies for current source id | |
cleanAllForElement ( Element\ELementInterface $element ) : void | ||
getBySourceId ( integer $id, string $type ) : |
Static helper to get the dependencies for the given sourceId & type | |
getRequiredBy ( ) : array | ||
getRequires ( ) : array | ||
getSourceId ( ) : integer | ||
getSourceType ( ) : string | ||
isRequired ( ) : void | Check if the source object is required by an other object (an other object depends on this object) | |
setRequiredBy ( array $requiredBy ) : void | ||
setRequires ( array $requires ) | ||
setSourceId ( integer $sourceId ) | ||
setSourceType ( string $sourceType ) : void |
public cleanAllForElement ( Element\ELementInterface $element ) : void | ||
$element | Element\ELementInterface | |
return | void |
public static getBySourceId ( integer $id, string $type ) : |
||
$id | integer | |
$type | string | |
return |
public isRequired ( ) : void | ||
return | void |
public setRequiredBy ( array $requiredBy ) : void | ||
$requiredBy | array | |
return | void |
public setSourceType ( string $sourceType ) : void | ||
$sourceType | string | |
return | void |
public int $requiredBy | ||
return | integer |
public int $requires | ||
return | integer |
public int $sourceId | ||
return | integer |
public string $sourceType | ||
return | string |