ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
__construct ($a_drop_zone_id, $a_ref_id=null, $current_obj=false) | |
Creates a new file upload GUI. | |
getHTML () | |
Gets the HTML code to enable the file upload. | |
enableFormSubmit ($input_field_id, $a_submit_name, $a_cancel_name) | |
setMaxFileSize ($a_max) | |
Sets the maximum file size in bytes. | |
getMaxFileSize () | |
Gets the maximum file size in bytes. | |
setArchiveSuffixes ($a_suffixes) | |
Set accepted archive suffixes. | |
getArchiveSuffixes () | |
Get accepted archive suffixes. | |
setSuffixes ($a_suffixes) | |
Set accepted suffixes. | |
getSuffixes () | |
Get accepted suffixes. | |
setInputFieldName ($a_name) | |
Sets the name of the input field the files are submitted with. | |
getInputFieldName () | |
Gets the name of the input field the files are submitted with. | |
setDropAreaId ($a_id) | |
getDropAreaId () | |
setFileListId ($a_id) | |
getFileListId () | |
setFileSelectButtonId ($a_id) | |
getFileSelectButtonId () |
Static Public Member Functions | |
static | initFileUpload () |
Initializes the file upload and loads the needed javascripts and styles. |
Data Fields | |
const | FILE_OBJ_GUI_CLASS = "ilObjFileGUI" |
Protected Member Functions | |
getSharedHtml () | |
Gets the code that is shared by all upload instances. | |
buildSuffixList ($suffixes) |
Private Member Functions | |
getUploadUrl () | |
makeJqueryId ($a_id) |
Private Attributes | |
$drop_zone_id = null | |
$ref_id = null | |
$current_obj = false | |
$max_file_size = null | |
$suffixes = array() | |
$archive_suffixes = array() | |
$input_field_name = "upload_files" | |
$input_field_id = null | |
$use_form = false | |
$drop_area_id = null | |
$submit_button_name = null | |
$cancel_button_name = null | |
$file_list_id = null | |
$file_select_button_id = null |
Static Private Attributes | |
static | $shared_code_loaded = false |
Definition at line 15 of file class.ilFileUploadGUI.php.
ilFileUploadGUI::__construct | ( | $a_drop_zone_id, | |
$a_ref_id = null , |
|||
$current_obj = false |
|||
) |
Creates a new file upload GUI.
Definition at line 38 of file class.ilFileUploadGUI.php.
References $current_obj, and $ilCtrl.
|
protected |
Definition at line 228 of file class.ilFileUploadGUI.php.
References $suffixes.
Referenced by getHTML().
ilFileUploadGUI::enableFormSubmit | ( | $input_field_id, | |
$a_submit_name, | |||
$a_cancel_name | |||
) |
Definition at line 244 of file class.ilFileUploadGUI.php.
References $input_field_id.
ilFileUploadGUI::getArchiveSuffixes | ( | ) |
Get accepted archive suffixes.
Definition at line 285 of file class.ilFileUploadGUI.php.
References $archive_suffixes.
Referenced by getHTML().
ilFileUploadGUI::getDropAreaId | ( | ) |
Definition at line 335 of file class.ilFileUploadGUI.php.
References $drop_area_id.
ilFileUploadGUI::getFileListId | ( | ) |
Definition at line 345 of file class.ilFileUploadGUI.php.
References $file_list_id.
ilFileUploadGUI::getFileSelectButtonId | ( | ) |
Definition at line 355 of file class.ilFileUploadGUI.php.
References $file_select_button_id.
ilFileUploadGUI::getHTML | ( | ) |
Gets the HTML code to enable the file upload.
Definition at line 71 of file class.ilFileUploadGUI.php.
References $cancel_button_name, $ilCtrl, $input_field_name, $lng, $options, $ref_id, $submit_button_name, $tpl, ilObject\_lookupObjId(), ilObject\_lookupTitle(), buildSuffixList(), ilJsonUtil\encode(), getArchiveSuffixes(), getMaxFileSize(), getSharedHtml(), getSuffixes(), getUploadUrl(), and makeJqueryId().
ilFileUploadGUI::getInputFieldName | ( | ) |
Gets the name of the input field the files are submitted with.
Definition at line 325 of file class.ilFileUploadGUI.php.
References $input_field_name.
ilFileUploadGUI::getMaxFileSize | ( | ) |
Gets the maximum file size in bytes.
Definition at line 265 of file class.ilFileUploadGUI.php.
References $max_file_size.
Referenced by getHTML().
|
protected |
Gets the code that is shared by all upload instances.
Definition at line 158 of file class.ilFileUploadGUI.php.
References $lng, ilFileUploadSettings\getConcurrentUploads(), ilUtil\getImagePath(), ilFileUploadUtil\getMaxFileSize(), and initFileUpload().
Referenced by getHTML().
ilFileUploadGUI::getSuffixes | ( | ) |
Get accepted suffixes.
Definition at line 305 of file class.ilFileUploadGUI.php.
References $suffixes.
Referenced by getHTML().
|
private |
Definition at line 360 of file class.ilFileUploadGUI.php.
References $ilCtrl, and ilFileUploadUtil\isUploadSupported().
Referenced by getHTML().
|
static |
Initializes the file upload and loads the needed javascripts and styles.
Definition at line 50 of file class.ilFileUploadGUI.php.
References $tpl, and ilUtil\getStyleSheetLocation().
Referenced by ilObjectGUI\enableDragDropFileUpload(), ilCloudPluginItemCreationListGUI\getGroupedListItemsHTML(), getSharedHtml(), ilObjectListGUI\insertFileUpload(), and ilDragDropFileInputGUI\render().
|
private |
Definition at line 380 of file class.ilFileUploadGUI.php.
Referenced by getHTML().
ilFileUploadGUI::setArchiveSuffixes | ( | $a_suffixes | ) |
Set accepted archive suffixes.
array | $a_suffixes | Accepted archive suffixes. |
Definition at line 275 of file class.ilFileUploadGUI.php.
ilFileUploadGUI::setDropAreaId | ( | $a_id | ) |
Definition at line 330 of file class.ilFileUploadGUI.php.
ilFileUploadGUI::setFileListId | ( | $a_id | ) |
Definition at line 340 of file class.ilFileUploadGUI.php.
ilFileUploadGUI::setFileSelectButtonId | ( | $a_id | ) |
Definition at line 350 of file class.ilFileUploadGUI.php.
ilFileUploadGUI::setInputFieldName | ( | $a_name | ) |
Sets the name of the input field the files are submitted with.
string | $a_name | The name of the input field. |
Definition at line 315 of file class.ilFileUploadGUI.php.
ilFileUploadGUI::setMaxFileSize | ( | $a_max | ) |
Sets the maximum file size in bytes.
int | $a_max_size | The maximum file size in bytes. |
Definition at line 257 of file class.ilFileUploadGUI.php.
ilFileUploadGUI::setSuffixes | ( | $a_suffixes | ) |
Set accepted suffixes.
array | $a_suffixes | Accepted suffixes. |
Definition at line 295 of file class.ilFileUploadGUI.php.
|
private |
Definition at line 25 of file class.ilFileUploadGUI.php.
Referenced by getArchiveSuffixes().
|
private |
Definition at line 31 of file class.ilFileUploadGUI.php.
Referenced by getHTML().
|
private |
Definition at line 22 of file class.ilFileUploadGUI.php.
Referenced by __construct().
|
private |
Definition at line 29 of file class.ilFileUploadGUI.php.
Referenced by getDropAreaId().
|
private |
Definition at line 20 of file class.ilFileUploadGUI.php.
|
private |
Definition at line 32 of file class.ilFileUploadGUI.php.
Referenced by getFileListId().
|
private |
Definition at line 33 of file class.ilFileUploadGUI.php.
Referenced by getFileSelectButtonId().
|
private |
Definition at line 27 of file class.ilFileUploadGUI.php.
Referenced by enableFormSubmit().
|
private |
Definition at line 26 of file class.ilFileUploadGUI.php.
Referenced by getHTML(), and getInputFieldName().
|
private |
Definition at line 23 of file class.ilFileUploadGUI.php.
Referenced by getMaxFileSize().
|
private |
Definition at line 21 of file class.ilFileUploadGUI.php.
Referenced by getHTML().
|
staticprivate |
Definition at line 18 of file class.ilFileUploadGUI.php.
|
private |
Definition at line 30 of file class.ilFileUploadGUI.php.
Referenced by getHTML().
|
private |
Definition at line 24 of file class.ilFileUploadGUI.php.
Referenced by buildSuffixList(), and getSuffixes().
|
private |
Definition at line 28 of file class.ilFileUploadGUI.php.
const ilFileUploadGUI::FILE_OBJ_GUI_CLASS = "ilObjFileGUI" |
Definition at line 17 of file class.ilFileUploadGUI.php.