public function getRoles() { return RoleIterator::loadByApplication($this->configuration(), $this->id, $this->database, false); }
public static function loadByApplication(Configuration $configuration, $id, EnhancedDatabase $database = null, $controller = false) { $iterator = new Iterator($configuration, $database, $controller); return $iterator->loadDataByApplication($id); }
public function getRoles() { return RoleIterator::loadByUser($this->configuration(), $this->id, $this->database(), true); }