11 require_once
'Services/Object/classes/class.ilObject.php';
12 require_once
'Modules/IndividualAssessment/classes/Settings/class.ilIndividualAssessmentSettings.php';
13 require_once
'Modules/IndividualAssessment/classes/Settings/class.ilIndividualAssessmentSettingsStorageDB.php';
14 require_once
'Modules/IndividualAssessment/classes/Members/class.ilIndividualAssessmentMembersStorageDB.php';
15 require_once
'Modules/IndividualAssessment/classes/AccessControl/class.ilIndividualAssessmentAccessHandler.php';
20 public function __construct($a_id = 0, $a_call_by_reference =
true) {
23 parent::__construct($a_id, $a_call_by_reference);
40 $this->settings_storage->createSettings($this->
settings);
50 $this->
settings = $settings_storage->loadSettings($this);
51 $this->info_settings = $settings_storage->loadInfoSettings($this);
59 $this->
settings = $this->settings_storage->loadSettings($this);
61 return $this->settings;
65 if(!$this->info_settings) {
66 $this->info_settings = $this->settings_storage->loadInfoSettings($this);
68 return $this->info_settings;
77 return $this->members_storage->loadMembers($this);
92 public function delete() {
93 $this->settings_storage->deleteSettings($this);
94 $this->members_storage->deleteMembers($this);
103 $this->settings_storage->updateSettings($this->
settings);
107 $this->settings_storage->updateInfoSettings($this->info_settings);
116 return $this->members_storage;
123 $this->access_handler->initDefaultRolesForObject($this);
132 return $this->access_handler;
138 public function cloneObject($a_target_id,$a_copy_id = 0, $a_omit_tree =
false) {
139 $new_obj = parent::cloneObject($a_target_id,$a_copy_id, $a_omit_tree);
144 ,$settings->recordTemplate());
145 $new_obj->settings = $new_settings;
148 $info_settings->contact()
149 ,$info_settings->responsibility()
150 ,$info_settings->phone()
151 ,$info_settings->mails()
152 ,$info_settings->consultationHours());
153 $new_obj->settings = $new_settings;
154 $new_obj->info_settings = $new_info_settings;
155 $new_obj->settings_storage->updateSettings($new_settings);
156 $new_obj->settings_storage->updateInfoSettings($new_info_settings);
166 if($this->lp_active === null) {
167 require_once
'Modules/IndividualAssessment/classes/LearningProgress/class.ilIndividualAssessmentLPInterface.php';
187 $tree = $DIC[
'tree'];
188 $node = $tree->getParentNodeData(
$id);
190 while($node[
'type'] !==
"root") {
191 if(in_array($node[
'type'], $types)) {
192 return $node[
'ref_id'];
194 $node = $tree->getParentNodeData($node[
'ref_id']);
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.
An object carrying settings of an Individual Assessment obj beyond the standart information.
Class ilObject Basic functions for all objects.
membersStorage()
Get the member storage object used by this.
A simple carrier for iass info-settings.
isActiveLP()
Check wether the LP is activated for current object.
getId()
get object id public
__construct($a_id=0, $a_call_by_reference=true)
Create styles array
The data for the language used.
loadMembers()
Get the members object associated with this.
updateStorageAndRBAC(ilIndividualAssessmentMembersStorage $storage, IndividualAssessmentAccessHandler $access_handler)
Store the data to a persistent medium.
accessHandler()
Get the access handler of this.
getParentContainerIdByType($id, array $types)
Bubbles up the tree.
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)