19 declare(strict_types=1);
50 $this->il_access_handler = $DIC[
"ilAccess"];
58 $this->members_storage = $dic[
'iass.member.storage'];
59 $this->access_handler = $dic[
'iass.accesshandler'];
67 $id = parent::create();
79 $this->settings_storage->createSettings($this->
settings);
86 public function read(): void
98 $this->
settings = $this->settings_storage->loadSettings($this);
115 if (!$this->info_settings) {
116 $this->info_settings = $this->settings_storage->loadInfoSettings($this);
126 $this->info_settings =
$info;
134 return $this->members_storage->loadMembers($this);
144 return $this->members_storage->loadMembersAsSingleObjects($this, $filter, $sort);
152 return $this->members_storage->loadMembers($this)
167 public function delete():
bool 170 $this->settings_storage->deleteSettings($this);
171 $this->members_storage->deleteMembers($this);
172 return parent::delete();
183 $this->settings_storage->updateSettings($this->
settings);
205 $this->access_handler->initDefaultRolesForObject($this);
221 $new_obj = parent::cloneObject($target_id, $copy_id, $omit_tree);
226 $new_obj->getTitle(),
227 $new_obj->getDescription(),
233 $new_obj->settings = $new_settings;
243 $new_obj->settings = $new_settings;
244 $new_obj->info_settings = $new_info_settings;
245 $new_obj->settings_storage->updateSettings($new_settings);
246 $new_obj->settings_storage->updateInfoSettings($new_info_settings);
256 if ($this->lp_active ===
null) {
277 $tree = $DIC[
'tree'];
280 while ($node[
'type'] !==
"root") {
281 if (in_array($node[
'type'], $types)) {
282 return (
int) $node[
'ref_id'];
289 protected function getDic(): Pimple\Container
291 if (is_null($this->dic)) {
293 $this->dic = $this->getObjectDIC(
303 return $this->
getDic()[
'ilIndividualAssessmentMembersGUI'];
308 return $this->
getDic()[
'ilIndividualAssessmentSettingsGUI'];
Deal with ilias rbac-system.
loadInfoSettings(ilObjIndividualAssessment $obj)
Load info-screen settings corresponding to obj.
ilIndividualAssessmentMembersStorageDB $members_storage
cloneObject(int $target_id, int $copy_id=0, bool $omit_tree=false)
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.
ilIndividualAssessmentSettings $settings
isEventTimePlaceRequired()
Get the value of the checkbox event_time_place_require.
An object carrying settings of an Individual Assessment obj beyond the standard information.
membersStorage()
Get the member storage object used by this.
__construct(int $id=0, bool $call_by_reference=true)
loadMembersAsSingleObjects(?string $filter=null, ?string $sort=null)
Get the members as single object associated with this.
getTitle()
Get the content of this assessment, e.g.
ilIndividualAssessmentAccessHandler $access_handler
setInfoSettings(ilIndividualAssessmentInfoSettings $info)
Set info settings.
static isActiveLP(int $object_id)
getContent()
Get the content of this assessment, e.g.
loadVisibleMembers()
Get the members object associated with this and visible by the current user.
Mechanic regarding the access control and roles of an objet goes here.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getDescription()
Get the content of this assessment, e.g.
isActiveLP()
Check whether the LP is activated for current object.
ilIndividualAssessmentInfoSettings $info_settings
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getParentNodeData(int $a_node_id)
get data of parent node from tree and object_data
setSettings(ilIndividualAssessmentSettings $settings)
Set the settings.
loadSettings(ilObjIndividualAssessment $obj)
Load settings corresponding to obj.
ilIndividualAssessmentFileStorage $file_storage
withAccessHandling(ilOrgUnitPositionAndRBACAccessHandler $access_handler)
Get a collection like this, but only including users that are visible according to the supplied acces...
loadMembers()
Get the members object associated with this.
updateStorageAndRBAC(ilIndividualAssessmentMembersStorage $storage, IndividualAssessmentAccessHandler $access_handler)
Store the data to a persistent medium.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
__construct(Container $dic, ilPlugin $plugin)
isFileRequired()
Get the value of the checkbox file_required.
getRecordTemplate()
Get the record template to be used as default record with corresponding object.
ilIndividualAssessmentSettingsGUI: ilIndividualAssessmentCommonSettingsGUI
ilAccessHandler $il_access_handler
accessHandler()
Get the access handler of this.
For the purpose of streamlining the grading and learning-process status definition outside of tests...
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 ...
setDescription(string $description)
getParentContainerIdByType(int $id, array $types)
Bubbles up the tree.
ilIndividualAssessmentSettingsStorageDB $settings_storage