ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSCORM2004TrackingItemsPerScoFilterGUI Class Reference

Class ilSCORM2004TrackingItemsPerScoFilterGUI. More...

+ Inheritance diagram for ilSCORM2004TrackingItemsPerScoFilterGUI:
+ Collaboration diagram for ilSCORM2004TrackingItemsPerScoFilterGUI:

Public Member Functions

 __construct (ilObjSCORM2004LearningModuleGUI $a_parent_obj, string $a_parent_cmd)
 
 parse (string $scoSelected, string $report, array $reports)
 
- Public Member Functions inherited from ilPropertyFormGUI
 __construct ()
 
 executeCommand ()
 
 setTableWidth (string $a_width)
 
 getTableWidth ()
 
 setMode (string $a_mode)
 
 getMode ()
 
 setTitle (string $a_title)
 
 getTitle ()
 
 setTitleIcon (string $a_titleicon)
 
 getTitleIcon ()
 
 setDescription (string $a_val)
 
 getDescription ()
 
 setTopAnchor (string $a_val)
 
 getTopAnchor ()
 
 setShowTopButtons (bool $a_val)
 
 getShowTopButtons ()
 
 setForceTopButtons (bool $a_val)
 
 getForceTopButtons ()
 
 addItem ($a_item)
 
 removeItemByPostVar (string $a_post_var, bool $a_remove_unused_headers=false)
 
 getItemByPostVar (string $a_post_var)
 
 setItems (array $a_items)
 
 getItems ()
 
 getInputItemsRecursive ()
 returns a flat array of all input items including the possibly existing subitems recursively More...
 
 setDisableStandardMessage (bool $a_val)
 
 getDisableStandardMessage ()
 
 getHideLabels ()
 
 setHideLabels (bool $a_value=true)
 
 setValuesByArray (array $a_values, bool $a_restrict_to_value_keys=false)
 
 setValuesByPost ()
 
 checkInput ()
 
 getInput (string $a_post_var, bool $ensureValidation=true)
 Returns the input of an item, if item provides getInput method and as fallback the value of the HTTP-POST variable, identified by the passed postvar. More...
 
 addCommandButton (string $a_cmd, string $a_text, string $a_id="")
 
 getCommandButtons ()
 
 clearCommandButtons ()
 
 getContent ()
 
 insertItem ( $item, bool $a_sub_item=false)
 
 addAsyncOnloadCode (string $code)
 
 getHTML ()
 
 getHTMLAsync ()
 
 getFileUpload (string $a_field, ?string $a_index=null, ?string $a_sub_index=null)
 Get file upload data. More...
 
 hasFileUpload (string $a_field, ?string $a_index=null, ?string $a_sub_index=null)
 
 moveFileUpload (string $a_target_directory, string $a_field, ?string $a_target_name=null, ?string $a_index=null, ?string $a_sub_index=null)
 Move upload to target directory. More...
 
- Public Member Functions inherited from ilFormGUI
 setFormAction (string $a_formaction)
 
 getFormAction ()
 
 setTarget (string $a_target)
 
 getTarget ()
 
 setMultipart (bool $a_multipart)
 
 getMultipart ()
 
 setId (string $a_id)
 
 getId ()
 
 setName (string $a_name)
 
 getName ()
 
 setKeepOpen (bool $a_keepopen)
 
 getKeepOpen ()
 
 setOpenTag (bool $a_open)
 
 getOpenTag ()
 
 setCloseTag (bool $a_val)
 
 getCloseTag ()
 
 setPreventDoubleSubmission (bool $a_val)
 
 getPreventDoubleSubmission ()
 
 getHTML ()
 
 getContent ()
 

Data Fields

ilPropertyFormGUI $form
 

Protected Attributes

ilObjSCORM2004LearningModuleGUI $parent_obj
 
string $parent_cmd
 
- Protected Attributes inherited from ilPropertyFormGUI
bool $required_text = false
 
ilLanguage $lng
 
ilCtrl $ctrl
 
ilTemplate $tpl
 
ilObjUser $user = null
 
ilSetting $settings = null
 
string $mode = "std"
 
bool $check_input_called = false
 
bool $disable_standard_message = false
 
string $top_anchor = "il_form_top"
 
string $title = ''
 
string $titleicon = ""
 
string $description = ""
 
string $tbl_width = ""
 
bool $show_top_buttons = true
 
bool $hide_labels = false
 
bool $force_top_buttons = false
 
HTTP Services $http
 
Refinery Factory $refinery = null
 
ilGlobalTemplateInterface $global_tpl = null
 
 $onload_code = []
 
- Protected Attributes inherited from ilFormGUI
string $formaction = ""
 
bool $multipart = false
 
bool $keepopen = false
 
bool $opentag = true
 
string $id = ''
 
string $name = ''
 
string $target = ''
 
bool $prevent_double_submission = false
 

Additional Inherited Members

- Protected Member Functions inherited from ilPropertyFormGUI
 getRequestedPostVar ()
 
 getFileHash ()
 
 hideRequired (string $a_type)
 
 appendOnloadCode (string $html)
 
 rebuildUploadedFiles ()
 
 checkForRequiredField ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilSCORM2004TrackingItemsPerScoFilterGUI::__construct ( ilObjSCORM2004LearningModuleGUI  $a_parent_obj,
string  $a_parent_cmd 
)

Definition at line 35 of file class.ilSCORM2004TrackingItemsPerScoFilterGUI.php.

36 {
37 global $DIC;
38
39 $this->ctrl = $DIC->ctrl();
40 $this->lng = $DIC->language();
41 $this->parent_obj = $a_parent_obj;
42 $this->parent_cmd = $a_parent_cmd;
43 parent::__construct($a_parent_obj, $a_parent_cmd);
44 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Member Function Documentation

◆ parse()

ilSCORM2004TrackingItemsPerScoFilterGUI::parse ( string  $scoSelected,
string  $report,
array  $reports 
)
Exceptions
ilCtrlException

Definition at line 49 of file class.ilSCORM2004TrackingItemsPerScoFilterGUI.php.

49 : void
50 {
51 $ilCtrl = $this->ctrl;
53 $lng->loadLanguageModule("scormtrac");
54 $this->form = new ilPropertyFormGUI();
55 $this->form->setFormAction($ilCtrl->getFormAction($this->parent_obj));
56
57 $options = array("all" => $lng->txt("all"));
58 $scos = $this->parent_obj->getObject()->getTrackedItems();
59 foreach ($scos as $row) {
60 $options[$row["id"]] = $row["title"];
61 }
62 $si = new ilSelectInputGUI($lng->txt("chapter"), "scoSelected");
63 $si->setOptions($options);
64 $si->setValue($scoSelected);
65 $this->form->addItem($si);
66
67 $options = array("choose" => $lng->txt("please_choose"));
68 foreach ($reports as $value) {
69 $options[$value] = $lng->txt(strtolower($value));
70 }
71 $si = new ilSelectInputGUI($lng->txt("report"), "report");
72 $si->setOptions($options);
73 $si->setValue($report);
74 $this->form->addItem($si);
75 $this->form->addCommandButton($this->parent_cmd, $lng->txt("apply_filter"));
76 }
loadLanguageModule(string $a_module)
Load language module.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
This class represents a property form user interface.
This class represents a selection list property in a property form.
form( $class_path, string $cmd, string $submit_caption="")

References ilPropertyFormGUI\$ctrl, ilPropertyFormGUI\$lng, ILIAS\Repository\form(), ilLanguage\loadLanguageModule(), and ilLanguage\txt().

+ Here is the call graph for this function:

Field Documentation

◆ $form

ilPropertyFormGUI ilSCORM2004TrackingItemsPerScoFilterGUI::$form

◆ $parent_cmd

string ilSCORM2004TrackingItemsPerScoFilterGUI::$parent_cmd
protected

◆ $parent_obj

ilObjSCORM2004LearningModuleGUI ilSCORM2004TrackingItemsPerScoFilterGUI::$parent_obj
protected

The documentation for this class was generated from the following file: