public static function loadByRole(Configuration $configuration, $id, EnhancedDatabase $database = null, $controller = false)
 {
     $iterator = new Iterator($configuration, $database, $controller);
     return $iterator->loadDataByRole($id);
 }
Exemple #2
0
 public function getApplications()
 {
     return ApplicationIterator::loadByRole($this->configuration(), $this->id, $this->database(), false);
 }
 public function getApplications()
 {
     $filter = array("package", "=", $this->id);
     return ApplicationIterator::loadBy($filter, $this->configuration(), $this->database(), true);
 }