11require_once
'Services/Object/classes/class.ilObject.php';
12require_once
'Modules/IndividualAssessment/classes/Settings/class.ilIndividualAssessmentSettings.php';
13require_once
'Modules/IndividualAssessment/classes/Settings/class.ilIndividualAssessmentSettingsStorageDB.php';
14require_once
'Modules/IndividualAssessment/classes/Members/class.ilIndividualAssessmentMembersStorageDB.php';
15require_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']);
An exception for terminatinating execution or to throw for unit testing.
Deal with ilias rbac-system
A simple carrier for iass info-settings.
static isActiveLP($a_object_id)
Member administration related logic, add and remove members, get the list of all members,...
updateStorageAndRBAC(ilIndividualAssessmentMembersStorage $storage, IndividualAssessmentAccessHandler $access_handler)
Store the data to a persistent medium.
A settings storage handler to write iass settings to db.
An object carrying settings of an Individual Assessment obj beyond the standart information.
For the purpose of streamlining the grading and learning-process status definition outside of tests,...
cloneObject($a_target_id, $a_copy_id=0, $a_omit_tree=false)
Clone object permissions, put in tree ...@access public object new object
initDefaultRoles()
init default roles settings Purpose of this function is to create a local role folder and local roles...
isActiveLP()
Check wether the LP is activated for current object.
accessHandler()
Get the access handler of this.
read()
read object data from db into object
updateMembers(ilIndividualAssessmentMembers $members)
Update the members object associated with this.
create()
createnote: title, description and type should be set when this function is called@access public inte...
getParentContainerIdByType($id, array $types)
Bubbles up the tree.
membersStorage()
Get the member storage object used by this.
update()
update object in db@access public boolean true on success
__construct($a_id=0, $a_call_by_reference=true)
Constructor @access public.
loadMembers()
Get the members object associated with this.
Class ilObject Basic functions for all objects.
getId()
get object id @access public