49 public function __construct($a_id = 0, $a_call_by_reference =
true)
53 $this->il_access_handler = $DIC[
"ilAccess"];
83 $this->settings_storage->createSettings($this->
settings);
101 $this->
settings = $this->settings_storage->loadSettings($this);
118 if (!$this->info_settings) {
119 $this->info_settings = $this->settings_storage->loadInfoSettings($this);
121 return $this->info_settings;
129 $this->info_settings = $info;
139 return $this->members_storage->loadMembers($this);
149 return $this->members_storage->loadMembersAsSingleObjects($this, $filter, $sort);
159 return $this->members_storage->loadMembers($this)
160 ->withAccessHandling($this->il_access_handler);
176 public function delete()
179 $this->settings_storage->deleteSettings($this);
180 $this->members_storage->deleteMembers($this);
192 $this->settings_storage->updateSettings($this->
settings);
197 $this->settings_storage->updateInfoSettings($this->info_settings);
215 $this->access_handler->initDefaultRolesForObject($this);
231 public function cloneObject($a_target_id, $a_copy_id = 0, $a_omit_tree =
false)
233 $new_obj = parent::cloneObject($a_target_id, $a_copy_id, $a_omit_tree);
237 (
int) $new_obj->getId(),
238 (int) $new_obj->getTitle(),
239 (int) $new_obj->getDescription(),
245 $new_obj->settings = $new_settings;
248 (
int) $new_obj->getId(),
249 $info_settings->getContact(),
250 $info_settings->getResponsibility(),
251 $info_settings->getPhone(),
252 $info_settings->getMails(),
253 $info_settings->getConsultationHours()
255 $new_obj->settings = $new_settings;
256 $new_obj->info_settings = $new_info_settings;
257 $new_obj->settings_storage->updateSettings($new_settings);
258 $new_obj->settings_storage->updateInfoSettings($new_info_settings);
261 if (count($fstorage->readDir()) > 0) {
262 $n_fstorage = $new_obj->getFileStorage();
263 $n_fstorage->create();
264 $fstorage->_copyDirectory($fstorage->getAbsolutePath(), $n_fstorage->getAbsolutePath());
276 if ($this->file_storage === null) {
279 return $this->file_storage;
289 if ($this->lp_active === null) {
290 require_once
'Modules/IndividualAssessment/classes/LearningProgress/class.ilIndividualAssessmentLPInterface.php';
311 $tree = $DIC[
'tree'];
312 $node =
$tree->getParentNodeData(
$id);
314 while ($node[
'type'] !==
"root") {
315 if (in_array($node[
'type'], $types)) {
316 return $node[
'ref_id'];
318 $node =
$tree->getParentNodeData($node[
'ref_id']);
323 protected function getDic() : Pimple\Container
325 if (is_null($this->dic)) {
327 $this->dic = $this->getObjectDIC(
337 return $this->
getDic()[
'ilIndividualAssessmentMembersGUI'];
342 return $this->
getDic()[
'ilIndividualAssessmentSettingsGUI'];
Deal with ilias rbac-system
For the purpose of streamlining the grading and learning-process status definition outside of tests...
A settings storage handler to write iass settings to db.
updateMetaData()
update meta data entry
An object carrying settings of an Individual Assessment obj beyond the standart information.
membersStorage()
Get the member storage object used by this.
createMetaData()
create meta data entry
getTitle()
Get the content of this assessment, e.g.
setInfoSettings(ilIndividualAssessmentInfoSettings $info)
Set info settings.
loadVisibleMembers()
Get the members object associated with this and visible by the current user.
getFileStorage()
Get the file storage system.
setTitle($a_title)
set object title
getDescription()
Get the content of this assessment, e.g.
isActiveLP()
Check wether the LP is activated for current object.
getId()
get object id public
setSettings(ilIndividualAssessmentSettings $settings)
Set the settings.
__construct($a_id=0, $a_call_by_reference=true)
loadMembersAsSingleObjects(string $filter=null, string $sort=null)
Get the members as single object associated with this.
loadMembers()
Get the members object associated with this.
updateStorageAndRBAC(ilIndividualAssessmentMembersStorage $storage, IndividualAssessmentAccessHandler $access_handler)
Store the data to a persistent medium.
__construct(Container $dic, ilPlugin $plugin)
deleteMetaData()
delete meta data entry
setDescription($a_desc)
set object description
ilIndividualAssessmentSettingsGUI: ilIndividualAssessmentCommonSettingsGUI
accessHandler()
Get the access handler of this.
getParentContainerIdByType($id, array $types)
Bubbles up the tree.
For the purpose of streamlining the grading and learning-process status definition outside of tests...
static getInstance($a_container_id=0)
updateMembers(ilIndividualAssessmentMembers $members)
Update the members object associated with this.
Member administration related logic, add and remove members, get the list of all members, etc.
static isActiveLP($a_object_id)
cloneObject($a_target_id, $a_copy_id=0, $a_omit_tree=false)