19declare(strict_types=1);
31 use ilIndividualAssessmentDIC;
39 protected ?Pimple\Container
$dic =
null;
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) {
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'];
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Class ResourceCollection.
Deal with ilias rbac-system.
static isActiveLP(int $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,...
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
A settings storage handler to write iass settings to db.
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.
For the purpose of streamlining the grading and learning-process status definition outside of tests,...
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.
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.
loadMembersAsSingleObjects(?string $filter=null, ?string $sort=null)
Get the members as single object associated with this.
setSettings(ilIndividualAssessmentSettings $settings)
Set the settings.
loadMembers()
Get the members object associated with this.
ilIndividualAssessmentInfoSettings $info_settings
Class ilObject Basic functions for all objects.
setDescription(string $description)
getParentNodeData(int $a_node_id)
get data of parent node from tree and object_data
Mechanic regarding the access control and roles of an objet goes here.
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc