ILIAS
Release_3_10_x_branch Revision 61812
|
This class represents a file property in a property form. More...
Public Member Functions | |
__construct ($a_title="", $a_postvar="") | |
Constructor. | |
setValueByArray ($a_values) | |
Set value by array. | |
setValue ($a_value) | |
Set Value. | |
getValue () | |
Get Value. | |
setFilename ($a_val) | |
Set filename value (if filename selection is enabled) | |
getFilename () | |
Get Value. | |
setSuffixes ($a_suffixes) | |
Set Accepted Suffixes. | |
getSuffixes () | |
Get Accepted Suffixes. | |
enableFileNameSelection ($a_post_var) | |
If enabled, users get the possibility to enter a filename for the uploaded file. | |
isFileNameSelectionEnabled () | |
Check if filename selection is enabled. | |
getFileNamePostVar () | |
Get file name post var. | |
checkInput () | |
Check input, strip slashes etc. | |
insert (&$a_tpl) | |
Insert property html. | |
Public Member Functions inherited from ilSubEnabledFormPropertyGUI | |
addSubItem ($a_item) | |
Add Subitem. | |
getSubItems () | |
Get Subitems. | |
setSubformMode ($a_subformmode) | |
Set Subform Mode. | |
getSubformMode () | |
Get Subform Mode. | |
checkSubItemsInput () | |
Check SubItems. | |
getSubForm () | |
Get sub form html. | |
Public Member Functions inherited from ilFormPropertyGUI | |
getType () | |
Get Type. | |
setTitle ($a_title) | |
Set Title. | |
getTitle () | |
Get Title. | |
setPostVar ($a_postvar) | |
Set Post Variable. | |
getPostVar () | |
Get Post Variable. | |
getFieldId () | |
Get Post Variable. | |
setInfo ($a_info) | |
Set Information Text. | |
getInfo () | |
Get Information Text. | |
setAlert ($a_alert) | |
Set Alert Text. | |
getAlert () | |
Get Alert Text. | |
setRequired ($a_required) | |
Set Required. | |
getRequired () | |
Get Required. | |
setDisabled ($a_disabled) | |
Set Disabled. | |
getDisabled () | |
Get Disabled. |
Protected Member Functions | |
outputSuffixes ($a_tpl, $a_block="allowed_suffixes") | |
getMaxFileSizeString () |
Private Attributes | |
$filename | |
$filename_post |
Additional Inherited Members | |
Protected Attributes inherited from ilSubEnabledFormPropertyGUI | |
$sub_items = array() | |
$subformmode = "bottom" |
This class represents a file property in a property form.
Definition at line 31 of file class.ilFileInputGUI.php.
ilFileInputGUI::__construct | ( | $a_title = "" , |
|
$a_postvar = "" |
|||
) |
Constructor.
string | $a_title | Title |
string | $a_postvar | Post Variable |
Reimplemented from ilFormPropertyGUI.
Reimplemented in ilFlashFileInputGUI, and ilImageFileInputGUI.
Definition at line 43 of file class.ilFileInputGUI.php.
References ilFormPropertyGUI\setType().
ilFileInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Reimplemented from ilFormPropertyGUI.
Definition at line 163 of file class.ilFileInputGUI.php.
References $filename, $lng, ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), getSuffixes(), getValue(), ilFormPropertyGUI\setAlert(), and ilUtil\virusHandling().
ilFileInputGUI::enableFileNameSelection | ( | $a_post_var | ) |
If enabled, users get the possibility to enter a filename for the uploaded file.
public
string | post variable |
Definition at line 129 of file class.ilFileInputGUI.php.
ilFileInputGUI::getFilename | ( | ) |
Get Value.
Definition at line 95 of file class.ilFileInputGUI.php.
References $filename.
Referenced by ilFlashFileInputGUI\getApplet(), and insert().
ilFileInputGUI::getFileNamePostVar | ( | ) |
Get file name post var.
public
string | file name post var |
Definition at line 153 of file class.ilFileInputGUI.php.
References $filename_post.
Referenced by insert(), and setValueByArray().
|
protected |
Definition at line 302 of file class.ilFileInputGUI.php.
Referenced by ilImageFileInputGUI\insert(), ilFlashFileInputGUI\insert(), and insert().
ilFileInputGUI::getSuffixes | ( | ) |
Get Accepted Suffixes.
Definition at line 117 of file class.ilFileInputGUI.php.
Referenced by checkInput(), and outputSuffixes().
ilFileInputGUI::getValue | ( | ) |
Get Value.
Definition at line 75 of file class.ilFileInputGUI.php.
Referenced by checkInput().
ilFileInputGUI::insert | ( | & | $a_tpl | ) |
Insert property html.
Reimplemented in ilFlashFileInputGUI, and ilImageFileInputGUI.
Definition at line 258 of file class.ilFileInputGUI.php.
References $lng, ilFormPropertyGUI\getFieldId(), getFilename(), getFileNamePostVar(), getMaxFileSizeString(), ilFormPropertyGUI\getPostVar(), isFileNameSelectionEnabled(), and outputSuffixes().
ilFileInputGUI::isFileNameSelectionEnabled | ( | ) |
Check if filename selection is enabled.
public
Definition at line 141 of file class.ilFileInputGUI.php.
Referenced by insert().
|
protected |
Definition at line 283 of file class.ilFileInputGUI.php.
References $lng, and getSuffixes().
Referenced by ilImageFileInputGUI\insert(), and insert().
ilFileInputGUI::setFilename | ( | $a_val | ) |
Set filename value (if filename selection is enabled)
string | $a_val |
Definition at line 85 of file class.ilFileInputGUI.php.
Referenced by ilFlashFileInputGUI\setApplet(), and setValueByArray().
ilFileInputGUI::setSuffixes | ( | $a_suffixes | ) |
Set Accepted Suffixes.
array | $a_suffixes | Accepted Suffixes |
Definition at line 107 of file class.ilFileInputGUI.php.
Referenced by ilImageFileInputGUI\__construct(), and ilFlashFileInputGUI\__construct().
ilFileInputGUI::setValue | ( | $a_value | ) |
Set Value.
(used for displaying file title of existing file below input field)
string | $a_value | Value |
Definition at line 65 of file class.ilFileInputGUI.php.
Referenced by setValueByArray().
ilFileInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
array | $a_values | value array |
Definition at line 54 of file class.ilFileInputGUI.php.
References getFileNamePostVar(), ilFormPropertyGUI\getPostVar(), setFilename(), and setValue().
|
private |
Definition at line 33 of file class.ilFileInputGUI.php.
Referenced by checkInput(), and getFilename().
|
private |
Definition at line 34 of file class.ilFileInputGUI.php.
Referenced by getFileNamePostVar().