Static helper to get the dependencies for the given sourceId & type
public static getBySourceId ( integer $id, string $type ) : |
||
$id | integer | |
$type | string | |
return |
/** * @return Model\Dependency */ public function getDependencies() { if (!$this->o_dependencies) { $this->o_dependencies = Model\Dependency::getBySourceId($this->getId(), "object"); } return $this->o_dependencies; }
/** * Returns the dependencies of the document * * @return Dependency */ public function getDependencies() { if (!$this->dependencies) { $this->dependencies = Dependency::getBySourceId($this->getId(), "document"); } return $this->dependencies; }