|
ILIAS
release_8 Revision v8.24
|
This class represents a file property in a property form. More...
Inheritance diagram for ilFileInputGUI:
Collaboration diagram for ilFileInputGUI:Public Member Functions | |
| __construct (string $a_title="", string $a_postvar="") | |
| setValueByArray (array $a_values) | |
| setValue (string $a_value) | |
| Set Value. More... | |
| getValue () | |
| setSize (int $a_size) | |
| getSize () | |
| setFilename (string $a_val) | |
| getFilename () | |
| setSuffixes (array $a_suffixes) | |
| getSuffixes () | |
| setForbiddenSuffixes (array $a_suffixes) | |
| getForbiddenSuffixes () | |
| setPending (string $a_val) | |
| getPending () | |
| enableFileNameSelection (string $a_post_var) | |
| isFileNameSelectionEnabled () | |
| getFileNamePostVar () | |
| setAllowDeletion (bool $a_val) | |
| getALlowDeletion () | |
| checkInput () | |
| Check input, strip slashes etc. More... | |
| getInput () | |
| render (string $a_mode="") | |
| insert (ilTemplate $a_tpl) | |
| getDeletionFlag () | |
| getToolbarHTML () | |
| Get input item HTML to be inserted into ilToolbarGUI. More... | |
Public Member Functions inherited from ilSubEnabledFormPropertyGUI | |
| addSubItem (ilFormPropertyGUI $a_item) | |
| getSubItems () | |
| getSubInputItemsRecursive () | |
| returns a flat array of possibly existing subitems recursively More... | |
| checkSubItemsInput () | |
| Check SubItems. More... | |
| getSubForm () | |
| getItemByPostVar (string $a_post_var) | |
| Get item by post var. More... | |
Public Member Functions inherited from ilFormPropertyGUI | |
| __construct (string $a_title="", string $a_postvar="") | |
| executeCommand () | |
| getType () | |
| setTitle (string $a_title) | |
| getTitle () | |
| setPostVar (string $a_postvar) | |
| getPostVar () | |
| getFieldId () | |
| setInfo (string $a_info) | |
| getInfo () | |
| setAlert (string $a_alert) | |
| getAlert () | |
| setRequired (bool $a_required) | |
| getRequired () | |
| setDisabled (bool $a_disabled) | |
| getDisabled () | |
| checkInput () | |
| Check input, strip slashes etc. More... | |
| setParentForm (ilPropertyFormGUI $a_parentform) | |
| getParentForm () | |
| setParent (ilFormPropertyGUI $a_val) | |
| getParent () | |
| getSubForm () | |
| hideSubForm () | |
| setHiddenTitle (string $a_val) | |
| getHiddenTitle () | |
| getItemByPostVar (string $a_post_var) | |
| Get item by post var. More... | |
| serializeData () | |
| unserializeData (string $a_data) | |
| setParentTable ($a_val) | |
| Set parent table. More... | |
| getParentTable () | |
| Get parent table. More... | |
| writeToSession () | |
| clearFromSession () | |
| readFromSession () | |
| getHiddenTag (string $a_post_var, string $a_value) | |
| setMulti (bool $a_multi, bool $a_sortable=false, bool $a_addremove=true) | |
| getMulti () | |
| setMultiValues (array $a_values) | |
| getMultiValues () | |
| getContentOutsideFormTag () | |
| Get content that has to reside outside of the parent form tag, e.g. More... | |
| stripSlashesAddSpaceFallback (string $a_str) | |
| Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727. More... | |
| getTableFilterLabelFor () | |
| Get label "for" attribute value for filter. More... | |
| getFormLabelFor () | |
| Get label "for" attribute value for form. More... | |
| setRequestParam (string $key, $val) | |
| This writes the request (aka post) values. More... | |
| getToolbarHTML () | |
| Get input item HTML to be inserted into ilToolbarGUI. More... | |
Protected Member Functions | |
| outputSuffixes (ilTemplate $a_tpl, string $a_block="allowed_suffixes") | |
| getMaxFileSizeString () | |
| getMaxFileUploads () | |
| Get number of maximum file uploads as declared in php.ini. More... | |
Protected Member Functions inherited from ilFormPropertyGUI | |
| setType (string $a_type) | |
| checkParentFormTable () | |
| getSessionKey () | |
| getMultiIconsHTML () | |
| int ($key) | |
| intArray ($key) | |
| str ($key) | |
| raw ($key) | |
| strArray ($key) | |
| arrayArray ($key) | |
| isRequestParamArray (string $key) | |
| getRequestParam (string $key, Refinery\Transformation $t) | |
Protected Attributes | |
| int | $size = 40 |
| string | $pending = "" |
| bool | $allow_deletion = false |
| bool | $filename_selection = false |
| array | $forbidden_suffixes = [] |
| array | $suffixes = [] |
| string | $value = "" |
| ILIAS FileUpload FileUpload | $upload_service |
Protected Attributes inherited from ilSubEnabledFormPropertyGUI | |
| array | $sub_items = array() |
Protected Attributes inherited from ilFormPropertyGUI | |
| array | $set_params = [] |
| ilTable2GUI | $parent_table = null |
| ilFormPropertyGUI | $parent_gui = null |
| ilCtrl | $ctrl |
| ilLanguage | $lng |
| string | $type = "" |
| string | $title = "" |
| string | $postvar = "" |
| string | $info = "" |
| string | $alert = "" |
| bool | $required = false |
| ilPropertyFormGUI | $parentform = null |
| string | $hidden_title = "" |
| bool | $multi = false |
| bool | $multi_sortable = false |
| bool | $multi_addremove = true |
| array | $multi_values = [] |
| RequestInterface | $request |
| HTTP Services | $http |
| Refinery Factory | $refinery = null |
| bool | $disabled = false |
| ilGlobalTemplateInterface | $global_tpl = null |
Private Attributes | |
| string | $filename = "" |
| string | $filename_post = "" |
Additional Inherited Members | |
Static Public Member Functions inherited from ilFormPropertyGUI | |
| static | removeProhibitedCharacters (string $a_text) |
| Remove prohibited characters see #19159. More... | |
This class represents a file property in a property form.
Definition at line 28 of file class.ilFileInputGUI.php.
| ilFileInputGUI::__construct | ( | string | $a_title = "", |
| string | $a_postvar = "" |
||
| ) |
Reimplemented from ilFormPropertyGUI.
Reimplemented in ilFileWizardInputGUI, and ilImageFileInputGUI.
Definition at line 41 of file class.ilFileInputGUI.php.
References $DIC, ilFormPropertyGUI\$lng, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\lng(), ilFormPropertyGUI\setHiddenTitle(), ilFormPropertyGUI\setType(), and ilLanguage\txt().
Here is the call graph for this function:| ilFileInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Reimplemented from ilFormPropertyGUI.
Reimplemented in ilImagemapCorrectionsInputGUI, ilImagemapFileInputGUI, and ilFileWizardInputGUI.
Definition at line 158 of file class.ilFileInputGUI.php.
References Vendor\Package\$e, $filename, ilFormPropertyGUI\$lng, ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), getSuffixes(), getValue(), ILIAS\Repository\refinery(), ilFormPropertyGUI\setAlert(), setFilename(), ilFormPropertyGUI\str(), ilUtil\stripSlashes(), ilLanguage\txt(), and ilVirusScanner\virusHandling().
Here is the call graph for this function:| ilFileInputGUI::enableFileNameSelection | ( | string | $a_post_var | ) |
Definition at line 132 of file class.ilFileInputGUI.php.
| ilFileInputGUI::getALlowDeletion | ( | ) |
Reimplemented in ilImageFileInputGUI.
Definition at line 153 of file class.ilFileInputGUI.php.
References $allow_deletion.
Referenced by render().
Here is the caller graph for this function:| ilFileInputGUI::getDeletionFlag | ( | ) |
Reimplemented in ilImageFileInputGUI.
Definition at line 425 of file class.ilFileInputGUI.php.
| ilFileInputGUI::getFilename | ( | ) |
Definition at line 95 of file class.ilFileInputGUI.php.
References $filename.
Referenced by render().
Here is the caller graph for this function:| ilFileInputGUI::getFileNamePostVar | ( | ) |
Definition at line 143 of file class.ilFileInputGUI.php.
References $filename_post.
Referenced by render(), and setValueByArray().
Here is the caller graph for this function:| ilFileInputGUI::getForbiddenSuffixes | ( | ) |
Definition at line 115 of file class.ilFileInputGUI.php.
References $forbidden_suffixes.
| ilFileInputGUI::getInput | ( | ) |
Reimplemented in ilImagemapFileInputGUI.
Definition at line 264 of file class.ilFileInputGUI.php.
References ilFormPropertyGUI\getPostVar().
Here is the call graph for this function:
|
protected |
Definition at line 384 of file class.ilFileInputGUI.php.
|
protected |
Get number of maximum file uploads as declared in php.ini.
Definition at line 420 of file class.ilFileInputGUI.php.
Referenced by ilFileWizardInputGUI\insert().
Here is the caller graph for this function:| ilFileInputGUI::getPending | ( | ) |
Definition at line 126 of file class.ilFileInputGUI.php.
References $pending.
Referenced by ilImageFileInputGUI\insert(), and render().
Here is the caller graph for this function:| ilFileInputGUI::getSize | ( | ) |
Definition at line 84 of file class.ilFileInputGUI.php.
References $size.
Referenced by render().
Here is the caller graph for this function:| ilFileInputGUI::getSuffixes | ( | ) |
Definition at line 105 of file class.ilFileInputGUI.php.
References $suffixes.
Referenced by ilImagemapFileInputGUI\checkInput(), checkInput(), ilFileWizardInputGUI\checkInput(), and outputSuffixes().
Here is the caller graph for this function:| ilFileInputGUI::getToolbarHTML | ( | ) |
Get input item HTML to be inserted into ilToolbarGUI.
Implements ilToolbarItem.
Definition at line 433 of file class.ilFileInputGUI.php.
| ilFileInputGUI::getValue | ( | ) |
Definition at line 74 of file class.ilFileInputGUI.php.
References $value.
Referenced by ilImagemapFileInputGUI\checkInput(), checkInput(), ilImagemapCorrectionsInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilImageFileInputGUI\insert(), and render().
Here is the caller graph for this function:| ilFileInputGUI::insert | ( | ilTemplate | $a_tpl | ) |
Reimplemented in ilImagemapCorrectionsInputGUI, ilImagemapFileInputGUI, ilFileWizardInputGUI, and ilImageFileInputGUI.
Definition at line 353 of file class.ilFileInputGUI.php.
References ilTemplate\parseCurrentBlock(), render(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
Here is the call graph for this function:| ilFileInputGUI::isFileNameSelectionEnabled | ( | ) |
Definition at line 138 of file class.ilFileInputGUI.php.
References $filename_selection.
Referenced by render().
Here is the caller graph for this function:
|
protected |
Definition at line 363 of file class.ilFileInputGUI.php.
References ilFormPropertyGUI\$lng, getSuffixes(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), and ilLanguage\txt().
Referenced by ilImagemapFileInputGUI\insert(), ilFileWizardInputGUI\insert(), ilImageFileInputGUI\insert(), and render().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileInputGUI::render | ( | string | $a_mode = "" | ) |
Definition at line 269 of file class.ilFileInputGUI.php.
References ilFormPropertyGUI\$lng, $pending, getALlowDeletion(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getFieldId(), getFilename(), getFileNamePostVar(), getPending(), ilFormPropertyGUI\getPostVar(), getSize(), getValue(), isFileNameSelectionEnabled(), outputSuffixes(), and ilLanguage\txt().
Referenced by insert().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileInputGUI::setAllowDeletion | ( | bool | $a_val | ) |
Reimplemented in ilImageFileInputGUI.
Definition at line 148 of file class.ilFileInputGUI.php.
| ilFileInputGUI::setFilename | ( | string | $a_val | ) |
Definition at line 90 of file class.ilFileInputGUI.php.
Referenced by checkInput(), and setValueByArray().
Here is the caller graph for this function:| ilFileInputGUI::setForbiddenSuffixes | ( | array | $a_suffixes | ) |
Definition at line 110 of file class.ilFileInputGUI.php.
| ilFileInputGUI::setPending | ( | string | $a_val | ) |
Definition at line 121 of file class.ilFileInputGUI.php.
| ilFileInputGUI::setSize | ( | int | $a_size | ) |
Definition at line 79 of file class.ilFileInputGUI.php.
| ilFileInputGUI::setSuffixes | ( | array | $a_suffixes | ) |
Definition at line 100 of file class.ilFileInputGUI.php.
Referenced by ilImageFileInputGUI\__construct().
Here is the caller graph for this function:| ilFileInputGUI::setValue | ( | string | $a_value | ) |
Set Value.
(used for displaying file title of existing file below input field)
Definition at line 69 of file class.ilFileInputGUI.php.
Referenced by setValueByArray().
Here is the caller graph for this function:| ilFileInputGUI::setValueByArray | ( | array | $a_values | ) |
Reimplemented in ilImagemapCorrectionsInputGUI, and ilImagemapFileInputGUI.
Definition at line 56 of file class.ilFileInputGUI.php.
References $value, getFileNamePostVar(), ilFormPropertyGUI\getPostVar(), setFilename(), and setValue().
Here is the call graph for this function:
|
protected |
Definition at line 34 of file class.ilFileInputGUI.php.
Referenced by getALlowDeletion(), and ilImageFileInputGUI\getALlowDeletion().
|
private |
Definition at line 30 of file class.ilFileInputGUI.php.
Referenced by ilImagemapFileInputGUI\checkInput(), checkInput(), ilFileWizardInputGUI\checkInput(), and getFilename().
|
private |
Definition at line 31 of file class.ilFileInputGUI.php.
Referenced by getFileNamePostVar().
|
protected |
Definition at line 35 of file class.ilFileInputGUI.php.
Referenced by isFileNameSelectionEnabled().
|
protected |
Definition at line 36 of file class.ilFileInputGUI.php.
Referenced by getForbiddenSuffixes().
|
protected |
Definition at line 33 of file class.ilFileInputGUI.php.
Referenced by getPending(), ilImageFileInputGUI\insert(), and render().
|
protected |
Definition at line 32 of file class.ilFileInputGUI.php.
Referenced by getSize().
|
protected |
Definition at line 37 of file class.ilFileInputGUI.php.
Referenced by getSuffixes().
|
protected |
Definition at line 39 of file class.ilFileInputGUI.php.
|
protected |
Definition at line 38 of file class.ilFileInputGUI.php.
Referenced by getValue(), ilFileWizardInputGUI\insert(), and setValueByArray().