ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilAsyncPropertyFormGUI. More...
Public Member Functions | |
__construct (array $config=array(), $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 ($a_formaction) | |
Sets the form action If the form is set to async, the cmdMode=asynch is added to the url. More... | |
getJsPath () | |
setJsPath ($js_path) | |
getDefaultFormName () | |
isAsync () | |
setAsync ($is_async) | |
setName ($a_name) | |
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, $a_remove_unused_headers=false) | |
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... | |
Static Public Member Functions | |
static | addJavaScript ($add_form_loader=false, $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 ($id, $content) |
Adds onload code to the template. More... | |
Protected Attributes | |
$has_errors = false | |
$is_async = true | |
Protected Attributes inherited from ilPropertyFormGUI | |
$lng | |
$ctrl | |
$tpl | |
$user | |
$settings | |
$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 | |
Static Protected Attributes | |
static | $js_path = "./Modules/StudyProgramme/templates/js/" |
static | $default_from_name = "async_form" |
static | $js_on_load_added = array() |
Additional Inherited Members | |
Protected Member Functions inherited from ilPropertyFormGUI | |
hideRequired ($a_type) | |
rebuildUploadedFiles () | |
try to rebuild files More... | |
Class ilAsyncPropertyFormGUI.
Definition at line 10 of file class.ilAsyncPropertyFormGUI.php.
Definition at line 37 of file class.ilAsyncPropertyFormGUI.php.
References $config, $is_async, $key, setAsync(), and setName().
|
static |
Adds all needed js By default is called by ilAsyncPropertyFormGUI::getHTML()
bool | $add_form_loader | |
null | $js_base_path |
Definition at line 60 of file class.ilAsyncPropertyFormGUI.php.
References $DIC, $js_path, and ilPropertyFormGUI\$tpl.
Referenced by ilObjStudyProgrammeTreeGUI\initAsyncUIElements().
|
staticprotected |
Adds onload code to the template.
$id | |
$content |
Definition at line 185 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 83 of file class.ilAsyncPropertyFormGUI.php.
References $result.
Referenced by getErrors().
ilAsyncPropertyFormGUI::cloneForm | ( | ilPropertyFormGUI | $form_to_clone | ) |
Copies form items, buttons and properties from another form.
ilPropertyFormGUI | $form_to_clone |
ilException |
Definition at line 154 of file class.ilAsyncPropertyFormGUI.php.
References ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ilPropertyFormGUI\getCommandButtons(), and ilPropertyFormGUI\getItems().
ilAsyncPropertyFormGUI::getDefaultFormName | ( | ) |
Definition at line 256 of file class.ilAsyncPropertyFormGUI.php.
|
static |
Returns the error-message template for the client-side validation.
Definition at line 129 of file class.ilAsyncPropertyFormGUI.php.
References $DIC, ilPropertyFormGUI\$lng, ilPropertyFormGUI\$tpl, and ilUtil\getImagePath().
ilAsyncPropertyFormGUI::getErrors | ( | ) |
Return errors of the form as array.
Definition at line 96 of file class.ilAsyncPropertyFormGUI.php.
References $errors, array, checkInput(), and ilPropertyFormGUI\getItems().
ilAsyncPropertyFormGUI::getHTML | ( | ) |
Returns the rendered form content.
Definition at line 201 of file class.ilAsyncPropertyFormGUI.php.
References isAsync().
ilAsyncPropertyFormGUI::getJsPath | ( | ) |
ilAsyncPropertyFormGUI::hasErrors | ( | ) |
Return if there were errors on the last checkInput call.
Definition at line 118 of file class.ilAsyncPropertyFormGUI.php.
References $has_errors.
ilAsyncPropertyFormGUI::isAsync | ( | ) |
Definition at line 264 of file class.ilAsyncPropertyFormGUI.php.
References $is_async.
Referenced by getHTML(), and setFormAction().
ilAsyncPropertyFormGUI::isSubmitted | ( | ) |
Checks if the form was submitted.
Definition at line 213 of file class.ilAsyncPropertyFormGUI.php.
References $_POST.
ilAsyncPropertyFormGUI::setAsync | ( | $is_async | ) |
boolean | $is_async |
Definition at line 273 of file class.ilAsyncPropertyFormGUI.php.
References $is_async.
Referenced by __construct().
ilAsyncPropertyFormGUI::setFormAction | ( | $a_formaction | ) |
Sets the form action If the form is set to async, the cmdMode=asynch is added to the url.
string | $a_formaction |
Definition at line 228 of file class.ilAsyncPropertyFormGUI.php.
References isAsync().
ilAsyncPropertyFormGUI::setJsPath | ( | $js_path | ) |
mixed | $js_path |
Definition at line 248 of file class.ilAsyncPropertyFormGUI.php.
References $js_path.
ilAsyncPropertyFormGUI::setName | ( | $a_name | ) |
string | $a_name |
Definition at line 282 of file class.ilAsyncPropertyFormGUI.php.
Referenced by __construct().
|
staticprotected |
Definition at line 20 of file class.ilAsyncPropertyFormGUI.php.
|
protected |
Definition at line 30 of file class.ilAsyncPropertyFormGUI.php.
Referenced by hasErrors().
|
protected |
Definition at line 35 of file class.ilAsyncPropertyFormGUI.php.
Referenced by __construct(), isAsync(), and setAsync().
|
staticprotected |
Definition at line 25 of file class.ilAsyncPropertyFormGUI.php.
|
staticprotected |
Definition at line 15 of file class.ilAsyncPropertyFormGUI.php.
Referenced by addJavaScript(), getJsPath(), and setJsPath().