ILIAS
Release_4_4_x_branch Revision 61816
|
This class represents a file input property where multiple files can be dopped in a property form. More...
Public Member Functions | |
__construct ($a_title="", $a_postvar="") | |
Constructor. | |
setArchiveSuffixes ($a_suffixes) | |
Set accepted archive suffixes. | |
getArchiveSuffixes () | |
Get accepted archive suffixes. | |
setCommandButtonNames ($a_submit_name, $a_cancel_name) | |
render ($a_mode="") | |
Render html. | |
checkInput () | |
Check input, strip slashes etc. | |
Public Member Functions inherited from ilFileInputGUI | |
setValueByArray ($a_values) | |
Set value by array. | |
setValue ($a_value) | |
Set Value. | |
getValue () | |
Get Value. | |
setSize ($a_size) | |
Set Size. | |
getSize () | |
Get Size. | |
setFilename ($a_val) | |
Set filename value (if filename selection is enabled) | |
getFilename () | |
Get Value. | |
setSuffixes ($a_suffixes) | |
Set Accepted Suffixes. | |
getSuffixes () | |
Get Accepted Suffixes. | |
setPending ($a_val) | |
Set pending filename value. | |
getPending () | |
Get pending filename. | |
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. | |
setALlowDeletion ($a_val) | |
Set allow deletion. | |
getALlowDeletion () | |
Get allow deletion. | |
insert (&$a_tpl) | |
Insert property html. | |
getDeletionFlag () | |
Get deletion flag. | |
getToolbarHTML () | |
Get HTML for toolbar. | |
setPersonalWorkspaceQuotaCheck ($a_value) | |
Public Member Functions inherited from ilSubEnabledFormPropertyGUI | |
addSubItem ($a_item) | |
Add Subitem. | |
getSubItems () | |
Get Subitems. | |
getSubInputItemsRecursive () | |
returns a flat array of possibly existing subitems recursively | |
checkSubItemsInput () | |
Check SubItems. | |
getSubForm () | |
Get sub form html. | |
getItemByPostVar ($a_post_var) | |
Get item by post var. | |
Public Member Functions inherited from ilFormPropertyGUI | |
& | executeCommand () |
Execute command. | |
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. | |
setParentForm ($a_parentform) | |
Set Parent Form. | |
getParentForm () | |
Get Parent Form. | |
setParent ($a_val) | |
Set Parent GUI object. | |
getParent () | |
Get Parent GUI object. | |
hideSubForm () | |
Sub form hidden on init? | |
setHiddenTitle ($a_val) | |
Set hidden title (for screenreaders) | |
getHiddenTitle () | |
Get hidden title. | |
serializeData () | |
serialize data | |
unserializeData ($a_data) | |
unserialize data | |
writeToSession () | |
Write to session. | |
clearFromSession () | |
Clear session value. | |
readFromSession () | |
Read from session. | |
getHiddenTag ($a_post_var, $a_value) | |
Get hidden tag (used for disabled properties) | |
setMulti ($a_multi, $a_sortable=false, $a_addremove=true) | |
Set Multi. | |
getMulti () | |
Get Multi. | |
setMultiValues (array $a_values) | |
Set multi values. | |
getMultiValues () | |
Get multi values. | |
getContentOutsideFormTag () | |
Get content that has to reside outside of the parent form tag, e.g. |
Protected Member Functions | |
getInputAcceptSuffixes ($suffixes) | |
buildSuffixList ($suffixes) | |
getMaxFileSize () | |
Protected Member Functions inherited from ilFileInputGUI | |
outputSuffixes ($a_tpl, $a_block="allowed_suffixes") | |
getMaxFileSizeString () |
Static Private Member Functions | |
static | getNextUniqueId () |
Private Attributes | |
$uniqueId = 0 | |
$archive_suffixes = array() | |
$submit_button_name = null | |
$cancel_button_name = null |
Static Private Attributes | |
static | $uniqueInc = 1 |
Additional Inherited Members | |
Protected Attributes inherited from ilFileInputGUI | |
$size = 40 | |
$pending | |
$allow_deletion | |
Static Protected Attributes inherited from ilFileInputGUI | |
static | $check_wsp_quota |
This class represents a file input property where multiple files can be dopped in a property form.
Definition at line 13 of file class.ilDragDropFileInputGUI.php.
ilDragDropFileInputGUI::__construct | ( | $a_title = "" , |
|
$a_postvar = "" |
|||
) |
Constructor.
string | $a_title | Title |
string | $a_postvar | Post Variable |
Reimplemented from ilFileInputGUI.
Definition at line 33 of file class.ilDragDropFileInputGUI.php.
References getNextUniqueId().
|
protected |
Definition at line 191 of file class.ilDragDropFileInputGUI.php.
ilDragDropFileInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Reimplemented from ilFileInputGUI.
Definition at line 141 of file class.ilDragDropFileInputGUI.php.
References $_POST, $lng, ilFormPropertyGUI\getPostVar(), and ilFormPropertyGUI\setAlert().
ilDragDropFileInputGUI::getArchiveSuffixes | ( | ) |
Get accepted archive suffixes.
Definition at line 54 of file class.ilDragDropFileInputGUI.php.
References $archive_suffixes.
|
protected |
Definition at line 175 of file class.ilDragDropFileInputGUI.php.
Referenced by render().
|
protected |
Definition at line 207 of file class.ilDragDropFileInputGUI.php.
|
staticprivate |
Definition at line 22 of file class.ilDragDropFileInputGUI.php.
Referenced by __construct().
ilDragDropFileInputGUI::render | ( | $a_mode = "" | ) |
Render html.
Reimplemented from ilFileInputGUI.
Definition at line 68 of file class.ilDragDropFileInputGUI.php.
References $ilUser, $lng, $tpl, ilUtil\getImagePath(), getInputAcceptSuffixes(), ilFileInputGUI\getMaxFileSizeString(), ilDiskQuotaHandler\getStatusLegend(), ilFileInputGUI\getSuffixes(), ilFileUploadGUI\initFileUpload(), iljQueryUtil\initjQuery(), ilDiskQuotaHandler\isUploadPossible(), and ilFileInputGUI\outputSuffixes().
ilDragDropFileInputGUI::setArchiveSuffixes | ( | $a_suffixes | ) |
Set accepted archive suffixes.
array | $a_suffixes | Accepted archive suffixes. |
Definition at line 44 of file class.ilDragDropFileInputGUI.php.
Referenced by ilObjFileGUI\initMultiUploadForm().
ilDragDropFileInputGUI::setCommandButtonNames | ( | $a_submit_name, | |
$a_cancel_name | |||
) |
Definition at line 59 of file class.ilDragDropFileInputGUI.php.
|
private |
Definition at line 16 of file class.ilDragDropFileInputGUI.php.
Referenced by getArchiveSuffixes().
|
private |
Definition at line 18 of file class.ilDragDropFileInputGUI.php.
|
private |
Definition at line 17 of file class.ilDragDropFileInputGUI.php.
|
private |
Definition at line 15 of file class.ilDragDropFileInputGUI.php.
|
staticprivate |
Definition at line 20 of file class.ilDragDropFileInputGUI.php.