|
| __construct ($a_data, int $a_id, bool $a_call_by_reference) |
|
| viewObject () |
|
| addContentSubTabs (string $a_activate) |
|
| infoScreenObject () |
|
| editObject () |
|
| showOverviewObject () |
|
| certificateObject () |
|
| outCertificateObject () |
|
| startAssignmentObject () |
| Start assignment with relative deadline. More...
|
|
| getRefId () |
|
| setAdminMode (string $mode) |
|
| getAdminMode () |
|
| getObject () |
|
| executeCommand () |
|
| withReferences () |
| determines whether objects are referenced or not (got ref ids or not) More...
|
|
| setCreationMode (bool $mode=true) |
| If true, a creation screen is displayed the current [ref_id] does belong to the parent class The mode is determined in ilRepositoryGUI. More...
|
|
| getCreationMode () |
|
| prepareOutput (bool $show_sub_objects=true) |
|
| getAdminTabs () |
| administration tabs show only permissions and trash folder More...
|
|
| getHTML () |
|
| confirmedDeleteObject () |
| confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
|
|
| cancelObject () |
| cancel action and go back to previous page More...
|
|
| createObject () |
| create new object form More...
|
|
| editAvailabilityPeriodObject () |
|
| saveAvailabilityPeriodObject () |
|
| cancelCreation () |
| cancel create action and go back to repository parent More...
|
|
| saveObject () |
|
| getDidacticTemplateVar (string $type) |
| Get didactic template setting from creation screen. More...
|
|
| putObjectInTree (ilObject $obj, ?int $parent_node_id=null) |
| Add object to tree at given position. More...
|
|
| editObject () |
|
| addExternalEditFormCustom (ilPropertyFormGUI $form) |
|
| updateObject () |
| updates object entry in object_data More...
|
|
| getFormAction (string $cmd, string $default_form_action="") |
| Get form action for command (command is method name without "Object", e.g. More...
|
|
| isVisible (int $ref_id, string $type) |
|
| viewObject () |
| viewObject container presentation for "administration -> repository, trash, permissions" More...
|
|
| deleteObject (bool $error=false) |
| Display deletion confirmation screen. More...
|
|
| setColumnSettings (ilColumnGUI $column_gui) |
|
| addToDeskObject () |
|
| removeFromDeskObject () |
|
| callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb) |
|
|
| afterSave (ilObject $a_new_object) |
|
| listAssignmentsObject () |
|
| getEditFormCustomValues (array &$a_values) |
|
| updateCustom (ilPropertyFormGUI $a_form) |
|
| getService () |
|
| setSettingsSubTabs () |
|
| addLocatorItems () |
| Add locator item. More...
|
|
| getCurrentMode () |
|
| getModeLink (string $mode) |
|
| getObjectService () |
|
| assignObject () |
|
| setTitleAndDescription () |
|
| createActionDispatcherGUI () |
|
| initHeaderAction (?string $sub_type=null, ?int $sub_id=null) |
| Add header action menu. More...
|
|
| insertHeaderAction (?ilObjectListGUI $list_gui=null) |
| Insert header action into main template. More...
|
|
| addHeaderAction () |
| Add header action menu. More...
|
|
| redrawHeaderActionObject () |
| Ajax call: redraw action header only. More...
|
|
| setTabs () |
| set admin tabs More...
|
|
| setAdminTabs () |
| set admin tabs More...
|
|
| setLocator () |
|
| addLocatorItems () |
| should be overwritten to add object specific items (repository items are preloaded) More...
|
|
| omitLocator (bool $omit=true) |
|
| addAdminLocatorItems (bool $do_not_add_object=false) |
| should be overwritten to add object specific items (repository items are preloaded) More...
|
|
| getCreationFormsHTML (StandardForm|ilPropertyFormGUI|array $form) |
|
| getTitleForCreationFormPage () |
|
| getCreationFormTitle () |
|
| initCreateForm (string $new_type) |
|
| didacticTemplatesToForm () |
|
| initDidacticTemplate (ilPropertyFormGUI $form) |
|
| retrieveAdditionalDidacticTemplateOptions () |
|
| addAdoptContentLinkToToolbar () |
|
| addImportButtonToToolbar () |
|
| addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar) |
|
| parseDidacticTemplateVar (string $var, string $type) |
|
| afterSave (ilObject $new_object) |
| Post (successful) object creation hook. More...
|
|
| initEditForm () |
|
| initEditCustomForm (ilPropertyFormGUI $a_form) |
| Add custom fields to update form. More...
|
|
| getEditFormValues () |
|
| getEditFormCustomValues (array &$a_values) |
| Add values to custom edit fields. More...
|
|
| validateCustom (ilPropertyFormGUI $form) |
| Validate custom values (if not possible with checkInput()) More...
|
|
| updateCustom (ilPropertyFormGUI $form) |
| Insert custom update form values into object. More...
|
|
| afterUpdate () |
| Post (successful) object update hook. More...
|
|
| routeImportCmdObject () |
|
| importFile (string $file_to_import, string $path_to_uploaded_file_in_temp_dir) |
|
| deleteUploadedImportFile (string $path_to_uploaded_file_in_temp_dir) |
|
| afterImport (ilObject $new_object) |
| Post (successful) object import hook. More...
|
|
| setFormAction (string $cmd, string $form_action) |
|
| getReturnLocation (string $cmd, string $default_location="") |
| Get return location for command (command is method name without "Object", e.g. More...
|
|
| setReturnLocation (string $cmd, string $location) |
| set specific return location for command More...
|
|
| getTargetFrame (string $cmd, string $default_target_frame="") |
| get target frame for command (command is method name without "Object", e.g. More...
|
|
| setTargetFrame (string $cmd, string $target_frame) |
| Set specific target frame for command. More...
|
|
| showPossibleSubObjects () |
| show possible sub objects (pull down menu) More...
|
|
| getTabs () |
| overwrite in derived GUI class of your object type More...
|
|
| redirectToRefId (int $ref_id, string $cmd="") |
| redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More...
|
|
| getCenterColumnHTML () |
| Get center column. More...
|
|
| getRightColumnHTML () |
| Display right column. More...
|
|
| checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null) |
|
| checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null) |
|
| enableDragDropFileUpload () |
| Enables the file upload into this object by dropping files. More...
|
|
| getCreatableObjectTypes () |
|
| buildAddNewItemElements (array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,) |
|
| buildGroup (string $create_target_class, array $obj_types_in_group, string $title, array $subtypes) |
|
ilObjExerciseGUI::__construct |
( |
|
$a_data, |
|
|
int |
$a_id, |
|
|
bool |
$a_call_by_reference |
|
) |
| |
- Exceptions
-
Definition at line 59 of file class.ilObjExerciseGUI.php.
References $ass, ilObjectGUI\$ctrl, $DIC, $GLOBALS, ilObjectGUI\$lng, $lp_user_id, ilObjectGUI\$object, $tabs, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), addContentSubTabs(), ilObjectGUI\addHeaderAction(), ilObjectGUI\checkPermission(), ilObjectGUI\checkPermissionBool(), ILIAS\Repository\ctrl(), ilObjectGUI\executeCommand(), ilObjectGUI\getCreationMode(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), getService(), ILIAS\Repository\help(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ILIAS\Repository\locator(), ilExAssignment\lookupExerciseId(), ilLearningProgressBaseGUI\LP_CONTEXT_REPOSITORY, ILIAS\UI\examples\Symbol\Glyph\Notification\notification(), ILIAS\Repository\object(), ilObjectGUI\prepareOutput(), setSettingsSubTabs(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), ILIAS\Repository\ui(), and ILIAS\Repository\user().
63 $this->
lng = $DIC->language();
64 $this->
user = $DIC->user();
65 $this->
ctrl = $DIC->ctrl();
66 $this->
tabs = $DIC->tabs();
67 $this->
help = $DIC[
"ilHelp"];
68 $this->
locator = $DIC[
"ilLocator"];
69 $this->tpl = $DIC[
"tpl"];
70 $this->
toolbar = $DIC->toolbar();
71 $lng = $DIC->language();
73 $this->
lng->loadLanguageModule(
'cert');
80 $this->
ctrl->saveParameter($this, [
"ass_id",
"mode",
"from_overview"]);
82 $this->service = $DIC->exercise()->internal();
83 $this->gui = $this->service->gui();
84 $this->exercise_request = $DIC->exercise()->internal()->gui()->request();
85 $this->exercise_ui = $DIC->exercise()->internal()->gui();
86 $this->requested_ass_id = $this->exercise_request->getAssId();
89 $this->requested_ass_id
90 ) === $this->
object->getId()) {
91 $this->ass = $this->exercise_request->getAssignment();
92 } elseif ($this->requested_ass_id > 0) {
95 $this->lp_user_id = ($this->exercise_request->getUserId() > 0 && $this->
access->checkAccess(
"read_learning_progress",
"", $this->exercise_request->getRefId()))
96 ? $this->exercise_request->getUserId()
97 : $this->
user->getId();
98 $this->requested_sort_order = $this->exercise_request->getSortOrder();
99 $this->requested_sort_by = $this->exercise_request->getSortBy();
100 $this->requested_offset = $this->exercise_request->getOffset();
101 $this->requested_ref_id = $this->exercise_request->getRefId();
102 $this->requested_ass_id_goto = $this->exercise_request->getAssIdGoto();
103 $this->
ui = $this->service->gui()->ui();
105 $this->
notification = $this->service->domain()->notification($this->requested_ref_id);
108 $this->ass_manager = $this->service->domain()->assignment()->assignments(
112 $this->item_builder = $this->service->gui()->assignment()->itemBuilder(
114 $this->service->domain()->assignment()->mandatoryAssignments($this->
object)
loadLanguageModule(string $a_module)
Load language module.
notification()
description: > Example for rendring a notification glyph.
Validates if an active certificate is stored in the database and can be downloaded by the user...
__construct(Container $dic, ilPlugin $plugin)
static lookupExerciseId(int $a_ass_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilObjExerciseGUI::showOverviewObject |
( |
| ) |
|
- Exceptions
-
Definition at line 881 of file class.ilObjExerciseGUI.php.
References $ass, $ass_manager, Vendor\Package\$f, ilObjectGUI\$html, ilObjectGUI\$object, $r, ilObjectGUI\$toolbar, $txt, ilObjectGUI\$user, ilLearningProgress\_tracProgress(), ilTabsGUI\activateTab(), ilToolbarGUI\addButton(), addContentSubTabs(), ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), getCurrentMode(), ilExAssignment\getId(), ilObject\getId(), ilExAssignment\getInstancesByExercise(), getModeLink(), ILIAS\Repository\lng(), null, ILIAS\Repository\ui(), and ILIAS\Repository\user().
883 $this->
ctrl->setParameterByClass(self::class,
"from_overview",
"1");
884 $user = $this->service->domain()->user();
885 $toolbar = $this->service->gui()->toolbar();
886 $tabs = $this->service->gui()->tabs();
893 if ($this->handleRandomAssignmentEntryPage()) {
908 if ($this->certificateDownloadValidator->isCertificateDownloadable(
913 $this->
lng->txt(
"certificate"),
914 $this->
ctrl->getLinkTarget($this,
"outCertificate")
918 $f = $this->
ui->factory();
919 $r = $this->
ui->renderer();
922 $random_manager = $this->service->domain()->assignment()->randomAssignments($exc);
925 $list_modes = [$am::TYPE_ONGOING,$am::TYPE_FUTURE,$am::TYPE_PAST];
929 foreach ($list_modes as $lm) {
931 foreach ($this->ass_manager->getList($lm) as
$ass) {
932 if (!$random_manager->isAssignmentVisible(
$ass->
getId(), $this->
user->getId())) {
935 $items[$lm][] = $this->item_builder->getItem(
$ass,
$user->
getId());
941 foreach ($items as $lm => $it) {
942 if (count($it) > 0) {
943 $groups[] =
$f->item()->group($this->
lng->txt(
"exc_" . $lm), $it);
946 if (count($groups) > 0) {
947 $panel =
$f->panel()->listing()->standard($this->
lng->txt(
"exc_assignments"), $groups);
949 $panel =
$f->panel()->standard($this->
lng->txt(
"exc_assignments"),
$f->messageBox()->info($this->
lng->txt(
"exc_no_assignments")));
953 foreach ($am->getListModes() as $mode =>
$txt) {
956 $mode =
$f->viewControl()->mode(
958 $this->
lng->txt(
"exc_mode_selection")
959 )->withActive($am->getListModeLabel($this->getCurrentMode()));
962 $l =
$f->legacy()->content(
"<br><br>");
963 $html .=
$r->render([$mode, $l, $panel]);
965 $this->tpl->setContent(
968 $this->
ctrl->setParameterByClass(self::class,
"from_overview",
null);
addContentSubTabs(string $a_activate)
static _tracProgress(int $a_user_id, int $a_obj_id, int $a_ref_id, string $a_obj_type='')
Exercise Assignment AssignmentManager $ass_manager
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static getInstancesByExercise(int $a_exc_id)
activateTab(string $a_id)
getModeLink(string $mode)
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)