ILIAS
release_8 Revision v8.23
|
Class ilAsyncPropertyFormGUI. More...
Public Member Functions | |
__construct (RequestWrapper $request_wrapper, array $config=array(), bool $is_async=true) | |
checkInput () | |
Saves the change input result into a property. More... | |
getErrors () | |
Return errors of the form as array. More... | |
hasErrors () | |
Return if there were errors on the last checkInput call. More... | |
cloneForm (ilPropertyFormGUI $form_to_clone) | |
Copies form items, buttons and properties from another form. More... | |
getHTML () | |
Returns the rendered form content. More... | |
isSubmitted () | |
Checks if the form was submitted. More... | |
setFormAction (string $a_formaction) | |
Sets the form action If the form is set to async, the cmdMode=asynch is added to the url. More... | |
getJsPath () | |
setJsPath (string $js_path) | |
getDefaultFormName () | |
isAsync () | |
setAsync (bool $is_async) | |
setName (string $a_name) | |
![]() | |
__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... | |
![]() | |
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 () | |
Static Public Member Functions | |
static | addJavaScript (bool $add_form_loader=false, string $js_base_path=null) |
Adds all needed js By default is called by ilAsyncPropertyFormGUI::getHTML() More... | |
static | getErrorMessageTemplate () |
Returns the error-message template for the client-side validation. More... | |
Static Protected Member Functions | |
static | addOnLoadCode (string $id, string $content) |
Adds onload code to the template. More... | |
Protected Attributes | |
bool | $has_errors = false |
bool | $is_async = true |
RequestWrapper | $request_wrapper |
![]() | |
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 = [] | |
![]() | |
string | $formaction = "" |
bool | $multipart = false |
bool | $keepopen = false |
bool | $opentag = true |
string | $id = '' |
string | $name = '' |
string | $target = '' |
bool | $prevent_double_submission = false |
Static Protected Attributes | |
static string | $js_path = "./Modules/StudyProgramme/templates/js/" |
static string | $default_from_name = "async_form" |
static array | $js_on_load_added = array() |
Additional Inherited Members | |
![]() | |
getRequestedPostVar () | |
getFileHash () | |
hideRequired (string $a_type) | |
appendOnloadCode (string $html) | |
rebuildUploadedFiles () | |
Class ilAsyncPropertyFormGUI.
Definition at line 29 of file class.ilAsyncPropertyFormGUI.php.
ilAsyncPropertyFormGUI::__construct | ( | RequestWrapper | $request_wrapper, |
array | $config = array() , |
||
bool | $is_async = true |
||
) |
Definition at line 58 of file class.ilAsyncPropertyFormGUI.php.
References $config, ILIAS\LTI\ToolProvider\$key, $request_wrapper, ILIAS\GlobalScreen\Provider\__construct(), setAsync(), and setName().
|
static |
Adds all needed js By default is called by ilAsyncPropertyFormGUI::getHTML()
Definition at line 79 of file class.ilAsyncPropertyFormGUI.php.
References $DIC, and ilPropertyFormGUI\$tpl.
Referenced by ilObjStudyProgrammeTreeGUI\initAsyncUIElements().
|
staticprotected |
Adds onload code to the template.
Definition at line 192 of file class.ilAsyncPropertyFormGUI.php.
References $DIC, ilFormGUI\$id, and ilPropertyFormGUI\$tpl.
ilAsyncPropertyFormGUI::checkInput | ( | ) |
Saves the change input result into a property.
Definition at line 105 of file class.ilAsyncPropertyFormGUI.php.
Referenced by getErrors().
ilAsyncPropertyFormGUI::cloneForm | ( | ilPropertyFormGUI | $form_to_clone | ) |
Copies form items, buttons and properties from another form.
Definition at line 165 of file class.ilAsyncPropertyFormGUI.php.
References ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ilPropertyFormGUI\getCommandButtons(), and ilPropertyFormGUI\getItems().
ilAsyncPropertyFormGUI::getDefaultFormName | ( | ) |
Definition at line 247 of file class.ilAsyncPropertyFormGUI.php.
|
static |
Returns the error-message template for the client-side validation.
Definition at line 146 of file class.ilAsyncPropertyFormGUI.php.
References $DIC, ilPropertyFormGUI\$lng, ilPropertyFormGUI\$tpl, ilTemplate\get(), ilUtil\getImagePath(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), and ilLanguage\txt().
ilAsyncPropertyFormGUI::getErrors | ( | ) |
Return errors of the form as array.
Definition at line 118 of file class.ilAsyncPropertyFormGUI.php.
References $errors, checkInput(), and ilPropertyFormGUI\getItems().
ilAsyncPropertyFormGUI::getHTML | ( | ) |
Returns the rendered form content.
Definition at line 206 of file class.ilAsyncPropertyFormGUI.php.
References isAsync().
ilAsyncPropertyFormGUI::getJsPath | ( | ) |
Definition at line 237 of file class.ilAsyncPropertyFormGUI.php.
ilAsyncPropertyFormGUI::hasErrors | ( | ) |
Return if there were errors on the last checkInput call.
Definition at line 138 of file class.ilAsyncPropertyFormGUI.php.
References $has_errors.
ilAsyncPropertyFormGUI::isAsync | ( | ) |
Definition at line 252 of file class.ilAsyncPropertyFormGUI.php.
References $is_async.
Referenced by getHTML(), and setFormAction().
ilAsyncPropertyFormGUI::isSubmitted | ( | ) |
Checks if the form was submitted.
Definition at line 216 of file class.ilAsyncPropertyFormGUI.php.
ilAsyncPropertyFormGUI::setAsync | ( | bool | $is_async | ) |
Definition at line 257 of file class.ilAsyncPropertyFormGUI.php.
References $is_async.
Referenced by __construct().
ilAsyncPropertyFormGUI::setFormAction | ( | string | $a_formaction | ) |
Sets the form action If the form is set to async, the cmdMode=asynch is added to the url.
Definition at line 228 of file class.ilAsyncPropertyFormGUI.php.
References isAsync().
ilAsyncPropertyFormGUI::setJsPath | ( | string | $js_path | ) |
Definition at line 242 of file class.ilAsyncPropertyFormGUI.php.
References $js_path.
ilAsyncPropertyFormGUI::setName | ( | string | $a_name | ) |
string | $a_name |
Definition at line 265 of file class.ilAsyncPropertyFormGUI.php.
Referenced by __construct().
|
staticprotected |
Definition at line 39 of file class.ilAsyncPropertyFormGUI.php.
|
protected |
Definition at line 49 of file class.ilAsyncPropertyFormGUI.php.
Referenced by hasErrors().
|
protected |
Definition at line 54 of file class.ilAsyncPropertyFormGUI.php.
Referenced by isAsync(), and setAsync().
|
staticprotected |
Definition at line 44 of file class.ilAsyncPropertyFormGUI.php.
|
staticprotected |
Definition at line 34 of file class.ilAsyncPropertyFormGUI.php.
Referenced by setJsPath().
|
protected |
Definition at line 56 of file class.ilAsyncPropertyFormGUI.php.
Referenced by __construct().