3declare(strict_types=1);
28 use ilIndividualAssessmentDIC;
36 protected ?Pimple\Container
$dic =
null;
45 $this->il_access_handler =
$DIC[
"ilAccess"];
65 $id = parent::create();
77 $this->settings_storage->createSettings($this->
settings);
84 public function read(): void
96 $this->
settings = $this->settings_storage->loadSettings($this);
113 if (!$this->info_settings) {
114 $this->info_settings = $this->settings_storage->loadInfoSettings($this);
124 $this->info_settings = $info;
132 return $this->members_storage->loadMembers($this);
142 return $this->members_storage->loadMembersAsSingleObjects($this, $filter, $sort);
150 return $this->members_storage->loadMembers($this)
165 public function delete():
bool
168 $this->settings_storage->deleteSettings($this);
169 $this->members_storage->deleteMembers($this);
170 return parent::delete();
181 $this->settings_storage->updateSettings($this->
settings);
203 $this->access_handler->initDefaultRolesForObject($this);
219 $new_obj = parent::cloneObject(
$target_id, $copy_id, $omit_tree);
224 $new_obj->getTitle(),
225 $new_obj->getDescription(),
231 $new_obj->settings = $new_settings;
241 $new_obj->settings = $new_settings;
242 $new_obj->info_settings = $new_info_settings;
243 $new_obj->settings_storage->updateSettings($new_settings);
244 $new_obj->settings_storage->updateInfoSettings($new_info_settings);
247 if (count($fstorage->readDir()) > 0) {
248 $n_fstorage = $new_obj->getFileStorage();
249 $n_fstorage->create();
250 $fstorage->_copyDirectory($fstorage->getAbsolutePath(), $n_fstorage->getAbsolutePath());
260 if ($this->file_storage ===
null) {
271 if ($this->lp_active ===
null) {
295 while ($node[
'type'] !==
"root") {
296 if (in_array($node[
'type'], $types)) {
297 return (
int) $node[
'ref_id'];
304 protected function getDic(): Pimple\Container
306 if (is_null($this->dic)) {
308 $this->dic = $this->getObjectDIC(
318 return $this->
getDic()[
'ilIndividualAssessmentMembersGUI'];
323 return $this->
getDic()[
'ilIndividualAssessmentSettingsGUI'];
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Handles the file upload and folder creation for files uploaded in grading form.
static getInstance(int $container_id=0)
static isActiveLP(int $object_id)
For the purpose of streamlining the grading and learning-process status definition outside of tests,...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withAccessHandling(ilOrgUnitPositionAndRBACAccessHandler $access_handler)
Get a collection like this, but only including users that are visible according to the supplied acces...
updateStorageAndRBAC(ilIndividualAssessmentMembersStorage $storage, IndividualAssessmentAccessHandler $access_handler)
Store the data to a persistent medium.
@ilCtrl_Calls ilIndividualAssessmentSettingsGUI: ilIndividualAssessmentCommonSettingsGUI
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
loadSettings(ilObjIndividualAssessment $obj)
Load settings corresponding to obj.
loadInfoSettings(ilObjIndividualAssessment $obj)
Load info-screen settings corresponding to obj.
An object carrying settings of an Individual Assessment obj beyond the standard information.
isEventTimePlaceRequired()
Get the value of the checkbox event_time_place_require.
isFileRequired()
Get the value of the checkbox file_required.
getTitle()
Get the content of this assessment, e.g.
getDescription()
Get the content of this assessment, e.g.
getRecordTemplate()
Get the record template to be used as default record with corresponding object.
getContent()
Get the content of this assessment, e.g.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setInfoSettings(ilIndividualAssessmentInfoSettings $info)
Set info settings.
ilIndividualAssessmentMembersStorageDB $members_storage
getParentContainerIdByType(int $id, array $types)
Bubbles up the tree.
ilIndividualAssessmentAccessHandler $access_handler
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...
ilAccessHandler $il_access_handler
isActiveLP()
Check whether the LP is activated for current object.
ilIndividualAssessmentSettings $settings
accessHandler()
Get the access handler of this.
loadMembersAsSingleObjects(string $filter=null, string $sort=null)
Get the members as single object associated with this.
cloneObject(int $target_id, int $copy_id=0, bool $omit_tree=false)
__construct(int $id=0, bool $call_by_reference=true)
updateMembers(ilIndividualAssessmentMembers $members)
Update the members object associated with this.
create()
note: title, description and type should be set when this function is called
ilIndividualAssessmentSettingsStorageDB $settings_storage
ilIndividualAssessmentFileStorage $file_storage
membersStorage()
Get the member storage object used by this.
setSettings(ilIndividualAssessmentSettings $settings)
Set the settings.
loadMembers()
Get the members object associated with this.
ilIndividualAssessmentInfoSettings $info_settings
getFileStorage()
Get the file storage system.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setDescription(string $desc)
getParentNodeData(int $a_node_id)
get data of parent node from tree and object_data
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc