12 use ilIndividualAssessmentDIC;
49 public function __construct($a_id = 0, $a_call_by_reference =
true)
53 $this->il_access_handler =
$DIC[
"ilAccess"];
81 $this->settings_storage->createSettings($this->
settings);
99 $this->
settings = $this->settings_storage->loadSettings($this);
116 if (!$this->info_settings) {
117 $this->info_settings = $this->settings_storage->loadInfoSettings($this);
119 return $this->info_settings;
127 $this->info_settings = $info;
137 return $this->members_storage->loadMembers($this);
147 return $this->members_storage->loadMembersAsSingleObjects($this, $filter, $sort);
157 return $this->members_storage->loadMembers($this)
158 ->withAccessHandling($this->il_access_handler);
174 public function delete()
176 $this->settings_storage->deleteSettings($this);
177 $this->members_storage->deleteMembers($this);
187 $this->settings_storage->updateSettings($this->
settings);
192 $this->settings_storage->updateInfoSettings($this->info_settings);
210 $this->access_handler->initDefaultRolesForObject($this);
226 public function cloneObject($a_target_id, $a_copy_id = 0, $a_omit_tree =
false)
228 $new_obj = parent::cloneObject($a_target_id, $a_copy_id, $a_omit_tree);
232 (
int) $new_obj->getId(),
233 (
int) $new_obj->getTitle(),
234 (
int) $new_obj->getDescription(),
240 $new_obj->settings = $new_settings;
243 (
int) $new_obj->getId(),
244 $info_settings->getContact(),
245 $info_settings->getResponsibility(),
246 $info_settings->getPhone(),
247 $info_settings->getMails(),
248 $info_settings->getConsultationHours()
250 $new_obj->settings = $new_settings;
251 $new_obj->info_settings = $new_info_settings;
252 $new_obj->settings_storage->updateSettings($new_settings);
253 $new_obj->settings_storage->updateInfoSettings($new_info_settings);
256 if (count($fstorage->readDir()) > 0) {
257 $n_fstorage = $new_obj->getFileStorage();
258 $n_fstorage->create();
259 $fstorage->_copyDirectory($fstorage->getAbsolutePath(), $n_fstorage->getAbsolutePath());
271 if ($this->file_storage ===
null) {
274 return $this->file_storage;
284 if ($this->lp_active ===
null) {
285 require_once
'Modules/IndividualAssessment/classes/LearningProgress/class.ilIndividualAssessmentLPInterface.php';
307 $node =
$tree->getParentNodeData(
$id);
309 while ($node[
'type'] !==
"root") {
310 if (in_array($node[
'type'], $types)) {
311 return $node[
'ref_id'];
313 $node =
$tree->getParentNodeData($node[
'ref_id']);
318 protected function getDic() : Pimple\Container
320 if (is_null($this->dic)) {
322 $this->dic = $this->getObjectDIC(
332 return $this->
getDic()[
'ilIndividualAssessmentMembersGUI'];
337 return $this->
getDic()[
'ilIndividualAssessmentSettingsGUI'];
An exception for terminatinating execution or to throw for unit testing.
Deal with ilias rbac-system
static getInstance($a_container_id=0)
static isActiveLP($a_object_id)
For the purpose of streamlining the grading and learning-process status definition outside of tests,...
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.
@ilCtrl_Calls ilIndividualAssessmentSettingsGUI: ilIndividualAssessmentCommonSettingsGUI
A settings storage handler to write iass settings to db.
An object carrying settings of an Individual Assessment obj beyond the standart information.
getTitle()
Get the content of this assessment, e.g.
getDescription()
Get the content of this assessment, e.g.
For the purpose of streamlining the grading and learning-process status definition outside of tests,...
setInfoSettings(ilIndividualAssessmentInfoSettings $info)
Set info settings.
cloneObject($a_target_id, $a_copy_id=0, $a_omit_tree=false)
loadVisibleMembers()
Get the members object associated with this and visible by the current user.
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.
loadMembersAsSingleObjects(string $filter=null, string $sort=null)
Get the members as single object associated with 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.
setSettings(ilIndividualAssessmentSettings $settings)
Set the settings.
loadMembers()
Get the members object associated with this.
getFileStorage()
Get the file storage system.
Class ilObject Basic functions for all objects.
setTitle($a_title)
set object title
setDescription($a_desc)
set object description
getId()
get object id @access public
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc