ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilAssQuestionAuthoringFormGUI Class Reference
+ Inheritance diagram for ilAssQuestionAuthoringFormGUI:
+ Collaboration diagram for ilAssQuestionAuthoringFormGUI:

Public Member Functions

 __construct ()
 ilAssQuestionAuthoringFormGUI constructor. More...
 
 addGenericAssessmentQuestionCommandButtons (assQuestion $questionOBJ)
 
 replaceFormItemByPostVar (ilFormPropertyGUI $replacingItem)
 
- Public Member Functions inherited from ilPropertyFormGUI
 __construct ()
 Constructor. More...
 
 executeCommand ()
 Execute command. More...
 
 setTableWidth ($a_width)
 Set table width. More...
 
 getTableWidth ()
 get table width More...
 
 setMode ($a_mode)
 Set Mode ('std', 'subform'). More...
 
 getMode ()
 Get Mode ('std', 'subform'). More...
 
 setTitle ($a_title)
 Set Title. More...
 
 getTitle ()
 Get Title. More...
 
 setTitleIcon ($a_titleicon)
 Set TitleIcon. More...
 
 getTitleIcon ()
 Get TitleIcon. More...
 
 setDescription ($a_val)
 Set description. More...
 
 getDescription ()
 Get description. More...
 
 setTopAnchor ($a_val)
 Set top anchor. More...
 
 getTopAnchor ()
 Get top anchor. More...
 
 setShowTopButtons ($a_val)
 Get show top buttons. More...
 
 getShowTopButtons ()
 Set show top buttons. More...
 
 addItem ($a_item)
 Add Item (Property, SectionHeader). More...
 
 removeItemByPostVar ($a_post_var)
 Remove Item. More...
 
 getItemByPostVar ($a_post_var)
 Get Item by POST variable. More...
 
 setItems ($a_items)
 Set Items. More...
 
 getItems ()
 Get Items. More...
 
 getInputItemsRecursive ()
 returns a flat array of all input items including the possibly existing subitems recursively More...
 
 setDisableStandardMessage ($a_val)
 Set disable standard message. More...
 
 getDisableStandardMessage ()
 Get disable standard message. More...
 
 getHideLabels ()
 Get a value indicating whether the labels should be hidden or not. More...
 
 setHideLabels ($a_value=true)
 Set a value indicating whether the labels should be hidden or not. More...
 
 setValuesByArray ($a_values, $a_restrict_to_value_keys=false)
 Set form values from an array. More...
 
 setValuesByPost ()
 Set form values from POST values. More...
 
 checkInput ()
 Check Post Input. More...
 
 getInput ($a_post_var, $ensureValidation=true)
 Returns the value of a HTTP-POST variable, identified by the passed id. More...
 
 addCustomProperty ($a_title, $a_html, $a_info="", $a_alert="", $a_required=false)
 Add a custom property. More...
 
 addCommandButton ($a_cmd, $a_text, $a_id="")
 Add Command button. More...
 
 getCommandButtons ()
 Return all Command buttons. More...
 
 clearCommandButtons ()
 Remove all command buttons. More...
 
 getContent ()
 Get Content. More...
 
 insertItem ($item, $a_sub_item=false)
 
 getHTML ()
 
 getFileUpload ($a_field, $a_index=null, $a_sub_index=null)
 Get file upload data. More...
 
 hasFileUpload ($a_field, $a_index=null, $a_sub_index=null)
 Was any file uploaded? More...
 
 moveFileUpload ($a_target_directory, $a_field, $a_target_name=null, $a_index=null, $a_sub_index=null)
 Move upload to target directory. More...
 
- Public Member Functions inherited from ilFormGUI
 setFormAction ($a_formaction)
 Set FormAction. More...
 
 getFormAction ()
 Get FormAction. More...
 
 setTarget ($a_target)
 Set Target. More...
 
 getTarget ()
 Get Target. More...
 
 setMultipart ($a_multipart)
 Set Enctype Multipart/Formdata true/false. More...
 
 getMultipart ()
 Get Enctype Multipart/Formdata true/false. More...
 
 setId ($a_id)
 Set Id. More...
 
 getId ()
 Get Id. More...
 
 setName ($a_name)
 Set Name. More...
 
 getName ()
 Get Name. More...
 
 setKeepOpen ($a_keepopen)
 Set Keep Form Tag Open. More...
 
 getKeepOpen ()
 Get Keep Form Tag Open. More...
 
 setOpenTag ($a_open)
 Enable/Disable Open Form Tag. More...
 
 getOpenTag ()
 Get Open Form Tag Enabled. More...
 
 setCloseTag ($a_val)
 Set close tag. More...
 
 getCloseTag ()
 Get close tag. More...
 
 setPreventDoubleSubmission ($a_val)
 Set prevent double submission. More...
 
 getPreventDoubleSubmission ()
 Get prevent double submission. More...
 
 getHTML ()
 Get HTML. More...
 
 getContent ()
 Get Content. More...
 

Protected Attributes

 $lng = null
 
- Protected Attributes inherited from ilPropertyFormGUI
 $mode = "std"
 
 $check_input_called = false
 
 $disable_standard_message = false
 
 $top_anchor = "il_form_top"
 
 $titleicon = false
 
 $description = ""
 
 $tbl_width = false
 
 $show_top_buttons = true
 
 $hide_labels = false
 
- Protected Attributes inherited from ilFormGUI
 $formaction
 
 $multipart = false
 
 $keepopen = false
 
 $opentag = true
 
 $id
 
 $name
 
 $prevent_double_submission = false
 

Additional Inherited Members

- Protected Member Functions inherited from ilPropertyFormGUI
 hideRequired ($a_type)
 
 rebuildUploadedFiles ()
 try to rebuild files More...
 

Detailed Description

Definition at line 11 of file class.ilAssQuestionAuthoringFormGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilAssQuestionAuthoringFormGUI::__construct ( )

ilAssQuestionAuthoringFormGUI constructor.

Definition at line 21 of file class.ilAssQuestionAuthoringFormGUI.php.

References $GLOBALS.

22  {
23  $this->lng = $GLOBALS['DIC'] ? $GLOBALS['DIC']['lng'] : $GLOBALS['lng'];
24 
25  parent::__construct();
26  }
$GLOBALS['loaded']
Global hash that tracks already loaded includes.

Member Function Documentation

◆ addGenericAssessmentQuestionCommandButtons()

ilAssQuestionAuthoringFormGUI::addGenericAssessmentQuestionCommandButtons ( assQuestion  $questionOBJ)
Parameters
assQuestion$questionOBJ

Definition at line 31 of file class.ilAssQuestionAuthoringFormGUI.php.

References ilPropertyFormGUI\addCommandButton(), and assQuestion\getSelfAssessmentEditingMode().

Referenced by ilAssOrderingQuestionAuthoringFormGUI\renewOrderingCommandButtons().

32  {
33  //if( !$this->object->getSelfAssessmentEditingMode() && !$_GET["calling_test"] )
34  // $this->addCommandButton("saveEdit", $this->lng->txt("save_edit"));
35 
36  if( !$questionOBJ->getSelfAssessmentEditingMode() )
37  {
38  $this->addCommandButton("saveReturn", $this->lng->txt("save_return"));
39  }
40 
41  $this->addCommandButton("save", $this->lng->txt("save"));
42  }
getSelfAssessmentEditingMode()
Get Self-Assessment Editing Mode.
addCommandButton($a_cmd, $a_text, $a_id="")
Add Command button.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ replaceFormItemByPostVar()

ilAssQuestionAuthoringFormGUI::replaceFormItemByPostVar ( ilFormPropertyGUI  $replacingItem)
Parameters
ilFormPropertyGUI$replacingItem
Returns
bool

Definition at line 48 of file class.ilAssQuestionAuthoringFormGUI.php.

References array, ilPropertyFormGUI\getItems(), ilFormPropertyGUI\getPostVar(), and ilPropertyFormGUI\setItems().

Referenced by ilAssOrderingQuestionAuthoringFormGUI\renewOrderingElementInput().

49  {
50  $itemWasReplaced = false;
51 
52  $preparedItems = array();
53 
54  foreach($this->getItems() as $dodgingItem)
55  {
56  /* @var ilFormPropertyGUI $dodgingItem */
57 
58  if( $dodgingItem->getPostVar() == $replacingItem->getPostVar() )
59  {
60  $preparedItems[] = $replacingItem;
61  $itemWasReplaced = true;
62  continue;
63  }
64 
65  $preparedItems[] = $dodgingItem;
66  }
67 
68  $this->setItems($preparedItems);
69 
70  return $itemWasReplaced;
71  }
setItems($a_items)
Set Items.
getPostVar()
Get Post Variable.
Create styles array
The data for the language used.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $lng

ilAssQuestionAuthoringFormGUI::$lng = null
protected

Definition at line 16 of file class.ilAssQuestionAuthoringFormGUI.php.


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