|
ILIAS
Release_4_2_x_branch Revision 61807
|
GUI class for file objects. More...
Inheritance diagram for ilObjFileGUI:
Collaboration diagram for ilObjFileGUI:Public Member Functions | |
| getType () | |
| Functions that must be overwritten. | |
| _forwards () | |
| executeCommand () | |
| execute command | |
| initSingleUploadForm () | |
| FORM: Init single upload form. | |
| save () | |
| save object | |
| saveAndMeta () | |
| save object | |
| initZipUploadForm ($a_mode="create") | |
| FORM: Init zip upload form. | |
| saveUnzip () | |
| saveUnzip object | |
| update () | |
| updates object entry in object_data | |
| edit () | |
| edit object | |
| sendFile () | |
| versions () | |
| file versions/history | |
| getVersionsDownloadLink ($a_history_id) | |
| infoScreen () | |
| this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed | |
| infoScreenForward () | |
| show information screen | |
| setTabs () | |
| create tabs (repository/workspace switch) | |
| _goto ($a_target, $a_additional=null) | |
| addLocatorItems () | |
| Functions to be overwritten. | |
Public Member Functions inherited from ilObject2GUI | |
| __construct ($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0) | |
| Constructor. | |
| delete () | |
| Display delete confirmation form (repository/workspace switch) | |
| confirmedDelete () | |
| Delete objects (repository/workspace switch) | |
| getHTML () | |
| withReferences () | |
| Final/Private declaration of unchanged parent methods. | |
| setCreationMode ($a_mode=true) | |
| if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui | |
| getCreationMode () | |
| get creation mode | |
| isVisible () | |
| trash () | |
| undelete () | |
| cancelDelete () | |
| removeFromSystem () | |
| cloneAll () | |
| getAdminTabs ($a) | |
| view () | |
| view object content (repository/workspace switch) | |
| getTemplateFile () | |
| copyWizardHasOptions ($a_mode) | |
| Check if there is any modules specific option. | |
| create () | |
| Deleted in ilObject. | |
| cancel () | |
| importFile () | |
| Import. | |
Public Member Functions inherited from ilObjectGUI | |
| ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true) | |
| Constructor public. | |
| getAdminTabs (&$tabs_gui) | |
| administration tabs show only permissions and trash folder | |
| undeleteObject () | |
| Get objects back from trash. | |
| confirmedDeleteObject () | |
| confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled | |
| cancelDeleteObject () | |
| cancel deletion of object | |
| removeFromSystemObject () | |
| remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method | |
| cancelObject ($in_rep=false) | |
| cancel action and go back to previous page public | |
| createObject () | |
| create new object form | |
| cancelCreation () | |
| cancel create action and go back to repository parent | |
| saveObject () | |
| save object | |
| editObject () | |
| edit object | |
| updateObject () | |
| updates object entry in object_data | |
| getFormAction ($a_cmd, $a_formaction="") | |
| get form action for command (command is method name without "Object", e.g. | |
| isVisible ($a_ref_id, $a_type) | |
| viewObject () | |
| list childs of current object | |
| deleteObject ($a_error=false) | |
| Display deletion confirmation screen. | |
| trashObject () | |
| Show trash content of object. | |
| getTemplateFile ($a_cmd, $a_type="") | |
| get a template blockfile format: tpl. | |
| cloneAllObject () | |
| Clone single (not container object) Method is overwritten in ilContainerGUI. | |
Protected Member Functions | |
| initCreationForms () | |
| initPropertiesForm () | |
Protected Member Functions inherited from ilObject2GUI | |
| afterConstructor () | |
| Do anything that should be done after constructor in here. | |
| assignObject () | |
| create object instance as internal property (repository/workspace switch) | |
| getAccessHandler () | |
| Get access handler. | |
| setLocator () | |
| set Locator | |
| deleteConfirmation () | |
| Display delete confirmation form (workspace specific) | |
| deleteConfirmedObjects () | |
| Delete objects (workspace specific) | |
| prepareOutput () | |
| prepare output | |
| setTitleAndDescription () | |
| called by prepare output | |
| showUpperIcon () | |
| omitLocator ($a_omit=true) | |
| getTargetFrame ($a_cmd, $a_target_frame="") | |
| get target frame for command (command is method name without "Object", e.g. | |
| setTargetFrame ($a_cmd, $a_target_frame) | |
| set specific target frame for command | |
| getCenterColumnHTML () | |
| Get center column. | |
| getRightColumnHTML () | |
| Display right column. | |
| setColumnSettings ($column_gui) | |
| May be overwritten in subclasses. | |
| checkPermission ($a_perm, $a_cmd="") | |
| showPossibleSubObjects () | |
| show possible subobjects (pulldown menu) | |
| redirectToRefId () | |
| fillCloneTemplate ($a_tpl_varname, $a_type) | |
| Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. | |
| fillCloneSearchTemplate ($a_tpl_varname, $a_type) | |
| searchCloneSource () | |
| buildCloneSelect ($existing_objs) | |
| addAdminLocatorItems () | |
| should be overwritten to add object specific items (repository items are preloaded) | |
| getReturnLocation () | |
| Deprecated functions. | |
| setReturnLocation () | |
| showActions () | |
| getTitlesByRefId () | |
| getTabs () | |
| __showButton () | |
| hitsperpageObject () | |
| __initTableGUI () | |
| __setTableGUIBasicData () | |
| __showClipboardTable () | |
| initCreationForms ($a_new_type) | |
| Init creation froms. | |
| putObjectInTree (ilObject $a_obj, $a_parent_node_id=null) | |
| Add object to tree at given position. | |
| checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_node_id=null) | |
| Check permission. | |
| initHeaderAction ($a_sub_type=null, $a_sub_id=null) | |
| Add header action menu. | |
| redrawHeaderAction () | |
| Updating icons after ajax call. | |
| getPermanentLinkWidget ($a_append=null, $a_center=false) | |
Protected Member Functions inherited from ilObjectGUI | |
| insertHeaderAction ($a_list_gui) | |
| Insert header action into main template. | |
| addHeaderAction () | |
| Add header action menu. | |
| redrawHeaderActionObject () | |
| Ajax call: redraw action header only. | |
| setAdminTabs () | |
| set admin tabs public | |
| getCreationFormsHTML (array $a_forms) | |
| Get HTML for creation forms (accordion) | |
| initCreateForm ($a_new_type) | |
| Init object creation form. | |
| initDidacticTemplate (ilPropertyFormGUI $form) | |
| Show didactic template types. | |
| addDidacticTemplateOptions (array &$a_options) | |
| Add custom templates. | |
| getDidacticTemplateVar ($a_type) | |
| Get didactic template setting from creation screen. | |
| afterSave (ilObject $a_new_object) | |
| Post (successful) object creation hook. | |
| initEditForm () | |
| Init object edit form. | |
| initEditCustomForm (ilPropertyFormGUI $a_form) | |
| Add custom fields to update form. | |
| getEditFormValues () | |
| Get values for edit form. | |
| getEditFormCustomValues (array &$a_values) | |
| Add values to custom edit fields. | |
| updateCustom (ilPropertyFormGUI $a_form) | |
| Insert custom update form values into object. | |
| afterUpdate () | |
| Post (successful) object update hook. | |
| initImportForm ($a_new_type) | |
| Init object import form. | |
| importFileObject ($parent_id=null) | |
| Import. | |
| afterImport (ilObject $a_new_object) | |
| Post (successful) object import hook. | |
| setFormAction ($a_cmd, $a_formaction) | |
| set specific form action for command | |
| getReturnLocation ($a_cmd, $a_location="") | |
| get return location for command (command is method name without "Object", e.g. | |
| setReturnLocation ($a_cmd, $a_location) | |
| set specific return location for command | |
| getTitlesByRefId ($a_ref_ids) | |
| get Titles of objects this method is used for error messages in methods cut/copy/paste | |
| getTabs (&$tabs_gui) | |
| get tabs abstract method. | |
| __showButton ($a_cmd, $a_text, $a_target= '') | |
| __setTableGUIBasicData (&$tbl, &$result_set, $a_from="") | |
| standard implementation for tables use 'from' variable use different initial setting of table | |
| __showClipboardTable ($a_result_set, $a_from="") | |
| redirectToRefId ($a_ref_id, $a_cmd="") | |
| redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value | |
| checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | |
| Check permission and redirect on error. | |
Additional Inherited Members | |
Data Fields inherited from ilObject2GUI | |
| $tree | |
| const | OBJECT_ID = 0 |
| const | REPOSITORY_NODE_ID = 1 |
| const | WORKSPACE_NODE_ID = 2 |
| const | REPOSITORY_OBJECT_ID = 3 |
| const | WORKSPACE_OBJECT_ID = 4 |
Protected Attributes inherited from ilObject2GUI | |
| $object_id | |
| $node_id | |
| $creation_forms = array() | |
| $id_type = array() | |
| $parent_id | |
| $access_handler | |
GUI class for file objects.
ilObjFileGUI: ilMDEditorGUI, ilInfoScreenGUI, ilPermissionGUI, ilShopPurchaseGUI, ilObjectCopyGUI ilObjFileGUI: ilExportGUI, ilWorkspaceAccessGUI, ilPortfolioPageGUI, ilCommonActionDispatcherGUI
Definition at line 19 of file class.ilObjFileGUI.php.
| ilObjFileGUI::_forwards | ( | ) |
Definition at line 27 of file class.ilObjFileGUI.php.
| ilObjFileGUI::_goto | ( | $a_target, | |
$a_additional = null |
|||
| ) |
Definition at line 801 of file class.ilObjFileGUI.php.
References $_GET, $ilErr, ilObjectGUI\$lng, ilObject\_lookupObjId(), ilObject\_lookupTitle(), exit, and ilUtil\sendFailure().
Here is the call graph for this function:| ilObjFileGUI::addLocatorItems | ( | ) |
Functions to be overwritten.
Reimplemented from ilObject2GUI.
Definition at line 839 of file class.ilObjFileGUI.php.
References ilObject2GUI\$node_id.
| ilObjFileGUI::edit | ( | ) |
edit object
public
Reimplemented from ilObject2GUI.
Definition at line 522 of file class.ilObjFileGUI.php.
References $ilErr, ilObject2GUI\checkPermissionBool(), and initPropertiesForm().
Here is the call graph for this function:| ilObjFileGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObject2GUI.
Definition at line 32 of file class.ilObjFileGUI.php.
References $_GET, $cmd, $ilCtrl, $ret, ilPaymentBookings\_readBookingByTransaction(), ilPaymentObject\_requiresPurchaseToAccess(), ilObjectGUI\addHeaderAction(), ilMDEditorGUI\addObserver(), ilObject2GUI\checkPermissionBool(), ilObject2GUI\getAccessHandler(), ilObject2GUI\getCreationMode(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), infoScreenForward(), ilObject2GUI\prepareOutput(), and ilObject2GUI\setLocator().
Here is the call graph for this function:| ilObjFileGUI::getType | ( | ) |
Functions that must be overwritten.
Reimplemented from ilObject2GUI.
Definition at line 21 of file class.ilObjFileGUI.php.
| ilObjFileGUI::getVersionsDownloadLink | ( | $a_history_id | ) |
Definition at line 650 of file class.ilObjFileGUI.php.
References $ilCtrl.
| ilObjFileGUI::infoScreen | ( | ) |
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed
Definition at line 666 of file class.ilObjFileGUI.php.
References infoScreenForward().
Here is the call graph for this function:| ilObjFileGUI::infoScreenForward | ( | ) |
show information screen
Definition at line 676 of file class.ilObjFileGUI.php.
References $ilErr, ilHistory\_getEntriesForObject(), ilObjFile\_lookupFileSize(), ilObject2GUI\checkPermissionBool(), ilFormat\formatSize(), ilUserUtil\getNamePresentation(), and ilObject2GUI\getPermanentLinkWidget().
Referenced by executeCommand(), and infoScreen().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 160 of file class.ilObjFileGUI.php.
References ilObjectGUI\CFORM_CLONE, ilObject2GUI\fillCloneTemplate(), initSingleUploadForm(), and initZipUploadForm().
Here is the call graph for this function:
|
protected |
| @return |
Definition at line 549 of file class.ilObjFileGUI.php.
References $file, $title, ilRadioOption\setInfo(), and ilTextAreaInputGUI\setRows().
Referenced by edit(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFileGUI::initSingleUploadForm | ( | ) |
FORM: Init single upload form.
Definition at line 178 of file class.ilObjFileGUI.php.
References ilObjectGUI\$lng, ilUtil\getImagePath(), ilObject2GUI\getTargetFrame(), ilFormPropertyGUI\setInfo(), and ilFormPropertyGUI\setRequired().
Referenced by initCreationForms(), and save().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFileGUI::initZipUploadForm | ( | $a_mode = "create" | ) |
FORM: Init zip upload form.
Definition at line 314 of file class.ilObjFileGUI.php.
References ilObjectGUI\$lng, ilUtil\getImagePath(), ilObject2GUI\getTargetFrame(), ilFormPropertyGUI\setInfo(), and ilFormPropertyGUI\setRequired().
Referenced by initCreationForms(), and saveUnzip().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFileGUI::save | ( | ) |
save object
public
Reimplemented from ilObject2GUI.
Definition at line 223 of file class.ilObjFileGUI.php.
References ilObjectGUI\$objDefinition, $title, ilObjFileAccess\_getFileExtension(), ilChangeEvent\_recordWriteEvent(), ilObject2GUI\checkPermissionBool(), ilMimeTypeUtil\getMimeType(), initSingleUploadForm(), ilObject2GUI\putObjectInTree(), ilUtil\redirect(), and ilUtil\sendSuccess().
Referenced by saveAndMeta().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFileGUI::saveAndMeta | ( | ) |
save object
public
Definition at line 306 of file class.ilObjFileGUI.php.
References save().
Here is the call graph for this function:| ilObjFileGUI::saveUnzip | ( | ) |
saveUnzip object
public
Definition at line 353 of file class.ilObjFileGUI.php.
References ilObject2GUI\$access_handler, ilObject2GUI\$tree, ilObject\_lookupType(), ilObject2GUI\checkPermissionBool(), ilUtil\delDir(), ilObject2GUI\getAccessHandler(), ilUtil\ilTempnam(), initZipUploadForm(), ilUtil\makeDir(), ilFileUtils\processZipFile(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Here is the call graph for this function:| ilObjFileGUI::sendFile | ( | ) |
Definition at line 593 of file class.ilObjFileGUI.php.
References $_GET, $ilCtrl, ilChangeEvent\_recordReadEvent(), and ilObject2GUI\checkPermissionBool().
Here is the call graph for this function:| ilObjFileGUI::setTabs | ( | ) |
create tabs (repository/workspace switch)
this had to be moved here because of the context-specific permission tab
Reimplemented from ilObject2GUI.
Definition at line 754 of file class.ilObjFileGUI.php.
References ilObjectGUI\$lng, and ilObject2GUI\checkPermissionBool().
Here is the call graph for this function:| ilObjFileGUI::update | ( | ) |
updates object entry in object_data
public
Reimplemented from ilObject2GUI.
Definition at line 448 of file class.ilObjFileGUI.php.
References ilObjectGUI\$data, $filename, $title, ilChangeEvent\_catchupWriteEvents(), ilChangeEvent\_recordWriteEvent(), ilMimeTypeUtil\getMimeType(), initPropertiesForm(), ilUtil\redirect(), and ilUtil\sendSuccess().
Here is the call graph for this function:| ilObjFileGUI::versions | ( | ) |
file versions/history
public
Definition at line 627 of file class.ilObjFileGUI.php.
References $_GET, ilObject2GUI\checkPermissionBool(), and ilHistoryGUI\getVersionsTable().
Here is the call graph for this function: