getBySourceId() публичный статический Метод

Static helper to get the dependencies for the given sourceId & type
public static getBySourceId ( integer $id, string $type ) : Dependency
$id integer
$type string
Результат Dependency
Пример #1
0
 /**
  * @return Model\Dependency
  */
 public function getDependencies()
 {
     if (!$this->o_dependencies) {
         $this->o_dependencies = Model\Dependency::getBySourceId($this->getId(), "object");
     }
     return $this->o_dependencies;
 }
Пример #2
0
 /**
  * Returns the dependencies of the document
  *
  * @return Dependency
  */
 public function getDependencies()
 {
     if (!$this->dependencies) {
         $this->dependencies = Dependency::getBySourceId($this->getId(), "document");
     }
     return $this->dependencies;
 }