/** * Read role properties and write them to form * @return * @param object $role */ protected function readRoleProperties(ilObjRole $role) { global $rbacreview; include_once 'Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php'; $data['title'] = $role->getTitle(); $data['desc'] = $role->getDescription(); $data['reg'] = $role->getAllowRegister(); $data['la'] = $role->getAssignUsersStatus(); if (ilDiskQuotaActivationChecker::_isActive()) { $data['disk_quota'] = $role->getDiskQuota() / pow(ilFormat::_getSizeMagnitude(), 2); } if (ilDiskQuotaActivationChecker::_isPersonalWorkspaceActive()) { $data['wsp_disk_quota'] = $role->getPersonalWorkspaceDiskQuota() / pow(ilFormat::_getSizeMagnitude(), 2); } $data['pro'] = $rbacreview->isProtected($this->rolf_ref_id, $role->getId()); $this->form->setValuesByArray($data); }