ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjCloudGUI Class Reference

Class ilObjCloudGUI. More...

+ Inheritance diagram for ilObjCloudGUI:
+ Collaboration diagram for ilObjCloudGUI:

Public Member Functions

 __construct ($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
 getType ()
 Get type.
 executeCommand ()
 execute command
 getStandardCmd ()
 Get standard command.
 _goto ($a_target)
 _goto Deep link
 infoScreen ()
 setTabs ()
 Set tabs.
 infoScreenForward ()
 show information screen
 render ()
 asyncGetBlock ()
 getFile ()
 asyncGetActionListContent ()
- Public Member Functions inherited from ilObject2GUI
 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 ()
 view ()
 view object content (repository/workspace switch)
 create ()
 Deleted in ilObject.
 save ()
 edit ()
 update ()
 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
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled
 cancelDeleteObject ()
 cancel deletion of object
 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.
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI.

Protected Member Functions

 initCreationForms ($a_new_type)
 Init creation froms.
 initCreateForm ($a_new_type)
 Init object creation form.
 afterSave (ilObjCloud $a_new_object)
 serviceAuth ($object)
 afterServiceAuth ()
 addHeaderAction ()
 Add header action menu.
 addLocatorItems ()
 addLocatorItems
- 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 ()
 getReturnLocation ()
 Deprecated functions.
 setReturnLocation ()
 showActions ()
 getTitlesByRefId ()
 getTabs ()
 __showButton ()
 hitsperpageObject ()
 __initTableGUI ()
 __setTableGUIBasicData ()
 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)
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting.
- Protected Member Functions inherited from ilObjectGUI
 insertHeaderAction ($a_list_gui)
 Insert header action into main template.
 redrawHeaderActionObject ()
 Ajax call: redraw action header only.
 showMountWebfolderIcon ()
 setAdminTabs ()
 set admin tabs public
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded)
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion)
 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
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl.
 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
 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.
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files.

Protected Attributes

 $plugin_service
 ilCloudPluginService
- Protected Attributes inherited from ilObject2GUI
 $object_id
 $node_id
 $creation_forms = array()
 $id_type = array()
 $parent_id
 $access_handler

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root.
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root.
- 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
const PORTFOLIO_OBJECT_ID = 5

Detailed Description

Constructor & Destructor Documentation

ilObjCloudGUI::__construct (   $a_id = 0,
  $a_id_type = self::REPOSITORY_NODE_ID,
  $a_parent_node_id = 0 
)
Parameters
int$a_id
int$a_id_type
int$a_parent_node_id

Reimplemented from ilObject2GUI.

Definition at line 35 of file class.ilObjCloudGUI.php.

References ilObjectGUI\$lng.

{
global $lng;
parent::__construct($a_id, $a_id_type, $a_parent_node_id);
$lng->loadLanguageModule("cld");
}

Member Function Documentation

ilObjCloudGUI::_goto (   $a_target)

_goto Deep link

Parameters
string$a_target

Definition at line 206 of file class.ilObjCloudGUI.php.

References $_GET, and $_POST.

{
$content = explode("_", $a_target);
$_GET["ref_id"] = $content[0];
$_POST["path"] = $content[2];
$_GET["baseClass"] = "ilrepositorygUI";
$_GET["cmdClass"] = "ilobjcloudgui";
$_GET["cmd"] = "render";
include("ilias.php");
}
ilObjCloudGUI::addHeaderAction ( )
protected

Add header action menu.

Reimplemented from ilObjectGUI.

Definition at line 421 of file class.ilObjCloudGUI.php.

References ilCloudConnector\getHeaderActionGUIClass(), ilObject2GUI\initHeaderAction(), and ilObjectGUI\insertHeaderAction().

Referenced by executeCommand().

{
$lg = $this->initHeaderAction();
if($lg)
{
$header_action_class = ilCloudConnector::getHeaderActionGUIClass($this->plugin_service);
$header_action_class->addCustomHeaderAction($lg);
$this->insertHeaderAction($lg);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCloudGUI::addLocatorItems ( )
protected

addLocatorItems

Reimplemented from ilObject2GUI.

Definition at line 435 of file class.ilObjCloudGUI.php.

References ilObject2GUI\$node_id.

{
global $ilLocator;
if (is_object($this->object))
{
$ilLocator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this, ""), "", $this->node_id);
}
}
ilObjCloudGUI::afterSave ( ilObjCloud  $a_new_object)
protected

Definition at line 346 of file class.ilObjCloudGUI.php.

References ilCloudConnector\getCreationGUIClass(), ilObject2\getId(), ilObjCloud\getServiceName(), initCreateForm(), ilObject2GUI\redirectToRefId(), ilUtil\sendFailure(), serviceAuth(), ilObjCloud\setAuthComplete(), ilObjCloud\setOnline(), ilObjCloud\setRootFolder(), ilObjCloud\setServiceName(), and ilObject2\update().

{
try
{
$form = $this->initCreateForm("cld");
if ($form->checkInput())
{
$a_new_object->setServiceName($form->getInput("service"));
$a_new_object->setRootFolder("/");
$a_new_object->setOnline(false);
$a_new_object->setAuthComplete(false);
$this->plugin_service = new ilCloudPluginService($a_new_object->getServiceName(), $a_new_object->getId());
$init_gui = ilCloudConnector::getCreationGUIClass($this->plugin_service);
if ($init_gui)
{
$init_gui->afterSavePluginCreation($a_new_object, $form);
}
$a_new_object->update();
$this->serviceAuth($a_new_object);
}
} catch (Exception $e)
{
ilUtil::sendFailure($e->getMessage(),true);
ilObjectGUI::redirectToRefId($this->parent_id);
}
}

+ Here is the call graph for this function:

ilObjCloudGUI::afterServiceAuth ( )
protected

Definition at line 389 of file class.ilObjCloudGUI.php.

References $ilCtrl, ilObjectGUI\$lng, ilRepUtil\deleteObjects(), ilObject2GUI\redirectToRefId(), ilUtil\sendFailure(), and ilUtil\sendSuccess().

{
global $ilCtrl,$lng;
try
{
if($this->plugin_service->afterAuthService())
{
$this->object->setRootId("root",true);
$this->object->setAuthComplete(true);
$this->object->update();
ilUtil::sendSuccess($lng->txt("cld_object_added"), true);
$ilCtrl->redirectByClass("ilCloudPluginSettingsGUI", "editSettings");
}
else
{
include_once("./Services/Repository/classes/class.ilRepUtil.php");
ilRepUtil::deleteObjects($this->object->getRefId(), $this->object->getRefId());
ilUtil::sendFailure($lng->txt("cld_auth_failed_no_object_created"),true);
ilObjectGUI::redirectToRefId($this->parent_id);
}
} catch (Exception $e)
{
ilUtil::sendFailure($e->getMessage(), true);
ilObjectGUI::redirectToRefId($this->parent_id);
}
}

+ Here is the call graph for this function:

ilObjCloudGUI::asyncGetActionListContent ( )

Definition at line 511 of file class.ilObjCloudGUI.php.

References $_GET, ilObject2GUI\checkPermissionBool(), ilCloudConnector\getActionListGUIClass(), and ilCloudFileTree\getFileTreeFromSession().

{
$action_list = ilCloudConnector::getActionListGUIClass($this->plugin_service);
return $action_list->asyncGetContent($this->checkPermissionBool("delete_files"), $this->checkPermissionBool("delete_folders"), $file_tree->getNodeFromId($_GET["node_id"]));
}

+ Here is the call graph for this function:

ilObjCloudGUI::asyncGetBlock ( )

Definition at line 459 of file class.ilObjCloudGUI.php.

References $_POST, ilObjectGUI\$tpl, ilObject2GUI\checkPermissionBool(), ilJsonUtil\encode(), exit, ilCloudFileTree\getFileTreeFromSession(), and ilCloudConnector\getFileTreeGUIClass().

{
global $tpl;
$response = new stdClass();
$response->message = null;
$response->locator = null;
$response->content = null;
$response->success = null;
try{
$file_tree->updateFileTree($_POST["path"]);
$node = $file_tree->getNodeFromPath($_POST["path"]);
$file_tree_gui = ilCloudConnector::getFileTreeGUIClass($this->plugin_service,$file_tree);
$response->content = $file_tree_gui->getFolderHtml($this,
$node->getId(),
$this->checkPermissionBool("delete_files"),
$this->checkPermissionBool("delete_folders"),
$this->checkPermissionBool("download"),
$this->checkPermissionBool("files_visible"),
$this->checkPermissionBool("folders_visible"));
$response->locator = $file_tree_gui->getLocatorHtml($file_tree->getNodeFromId($node->getId()));
$response->success = true;
}
catch(Exception $e)
{
$response->message = $tpl->getMessageHTML($e->getMessage(),"failure");
}
header('Content-type: application/json');
echo ilJsonUtil::encode($response);
}

+ Here is the call graph for this function:

ilObjCloudGUI::executeCommand ( )

execute command

Reimplemented from ilObject2GUI.

Definition at line 55 of file class.ilObjCloudGUI.php.

References $_GET, $cmd, $ilCtrl, ilObjectGUI\$lng, addHeaderAction(), ilObject2GUI\checkPermission(), ilObject2GUI\checkPermissionBool(), ilCloudConnector\checkServiceActive(), ilCloudConnector\getActionListGUIClass(), ilCloudConnector\getActiveServices(), ilCloudConnector\getCreateFolderGUIClass(), ilCloudConnector\getDeleteGUIClass(), ilCloudFileTree\getFileTreeFromSession(), ilCloudConnector\getFileTreeGUIClass(), ilCloudConnector\getHeaderActionGUIClass(), ilCloudConnector\getInitGUIClass(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), ilCloudConnector\getItemCreationListGUIClass(), ilCloudConnector\getServiceClass(), ilCloudConnector\getSettingsGUIClass(), ilCloudConnector\getUploadGUIClass(), infoScreenForward(), ilObject2GUI\prepareOutput(), ilObject2GUI\redirectToRefId(), ilUtil\sendFailure(), and serviceAuth().

{
global $ilCtrl, $ilTabs, $ilNavigationHistory, $lng;
// Navigation History
$link = $ilCtrl->getLinkTarget($this, "render");
try
{
} catch (Exception $e)
{
ilUtil::sendFailure($lng->txt("cld_no_service_active"), true);
ilObjectGUI::redirectToRefId($this->parent_id);
}
if ($this->object != NULL)
{
$ilNavigationHistory->addItem($this->object->getRefId(), $link, "cld");
try
{
ilCloudConnector::checkServiceActive($this->object->getServiceName());
}
catch(Exception $e)
{
ilUtil::sendFailure($lng->txt("cld_plugin_not_active"), true);
ilObjectGUI::redirectToRefId($this->parent_id);
}
if($this->object->getAuthComplete() == false && !$_GET["authMode"])
{
if ($this->checkPermissionBool("write"))
{
$this->serviceAuth($this->object);
}
else
{
ilUtil::sendFailure($lng->txt("cld_auth_failed"),true);
ilObjectGUI::redirectToRefId($this->parent_id);
}
}
$this->plugin_service = ilCloudConnector::getServiceClass($this->object->getServiceName(), $this->object->getId(), false);
}
$next_class = $ilCtrl->getNextClass($this);
$cmd = $ilCtrl->getCmd($this);
switch ($cmd)
{
case "editSettings" :
$next_class = "ilcloudpluginsettingsgui";
break;
case "afterServiceAuth" :
$this->checkPermission("write");
$this->$cmd();
return;
case "render" :
$this->addHeaderAction();
break;
}
switch ($next_class)
{
case "ilinfoscreengui":
$this->prepareOutput();
break;
case "ilcommonactiondispatchergui":
include_once("Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
$this->ctrl->forwardCommand($gui);
break;
case "ilpermissiongui":
$this->prepareOutput();
$ilTabs->activateTab("id_permissions");
include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
$perm_gui = new ilPermissionGUI($this);
$this->ctrl->forwardCommand($perm_gui);
break;
case "ilcloudpluginuploadgui":
if ($this->checkPermissionBool("upload"))
{
$upload_gui = ilCloudConnector::getUploadGUIClass($this->plugin_service);
$this->ctrl->forwardCommand($upload_gui);
}
break;
case "ilcloudplugincreatefoldergui":
if ($this->checkPermissionBool("folders_create"))
{
$folder_gui = ilCloudConnector::getCreateFolderGUIClass($this->plugin_service);
$this->ctrl->forwardCommand($folder_gui);
}
break;
case "ilcloudplugindeletegui":
if ($this->checkPermissionBool("delete_files") || $this->checkPermissionBool("delete_folders"))
{
$delete_gui = ilCloudConnector::getDeleteGUIClass($this->plugin_service);
$this->ctrl->forwardCommand($delete_gui);
}
break;
case "ilcloudpluginsettingsgui":
$this->prepareOutput();
if ($this->checkPermissionBool("write"))
{
$settings_gui = ilCloudConnector::getSettingsGUIClass($this->plugin_service);
$settings_gui->setCloudObject($this->object);
$this->ctrl->forwardCommand($settings_gui);
}
break;
case "ilcloudpluginactionlistgui":
$action_list_gui = ilCloudConnector::getActionListGUIClass($this->plugin_service);
$this->ctrl->forwardCommand($action_list_gui);
break;
case "ilcloudpluginitemcreationlistgui":
$item_creation_gui = ilCloudConnector::getItemCreationListGUIClass($this->plugin_service);
$this->ctrl->forwardCommand($item_creation_gui);
break;
case "ilcloudpluginfiletreegui":
$this->ctrl->forwardCommand($file_tree_gui);
break;
case "ilcloudpluginheaderactiongui":
$header_action_gui = ilCloudConnector::getHeaderActionGUIClass($this->plugin_service);
$this->ctrl->forwardCommand($header_action_gui);
break;
case "ilcloudplugininitgui":
$init_gui = ilCloudConnector::getInitGUIClass($this->plugin_service);
$this->ctrl->forwardCommand($init_gui);
break;
default:
}
return true;
}

+ Here is the call graph for this function:

ilObjCloudGUI::getFile ( )

Definition at line 495 of file class.ilObjCloudGUI.php.

References $_GET, ilObject2GUI\checkPermissionBool(), ilCloudFileTree\getFileTreeFromSession(), and ilUtil\sendFailure().

{
global $ilTabs;
if ($this->checkPermissionBool("download"))
{
try{
$file_tree->downloadFromService($_GET['id']);
} catch (Exception $e)
{
$ilTabs->activateTab("content");
ilUtil::sendFailure($e->getMessage());
}
}
}

+ Here is the call graph for this function:

ilObjCloudGUI::getStandardCmd ( )

Get standard command.

Definition at line 195 of file class.ilObjCloudGUI.php.

{
return "render";
}
ilObjCloudGUI::getType ( )
final

Get type.

Reimplemented from ilObject2GUI.

Definition at line 47 of file class.ilObjCloudGUI.php.

Referenced by ilCloudPluginInfoScreenGUI\getInfoScreen().

{
return "cld";
}

+ Here is the caller graph for this function:

ilObjCloudGUI::infoScreen ( )

Definition at line 217 of file class.ilObjCloudGUI.php.

{
return false;
}
ilObjCloudGUI::infoScreenForward ( )

show information screen

Definition at line 252 of file class.ilObjCloudGUI.php.

References $ilErr, ilObject2GUI\checkPermissionBool(), and ilCloudConnector\getInfoScreenGUIClass().

Referenced by executeCommand().

{
global $ilTabs, $ilErr;
$ilTabs->activateTab("id_info");
if (!$this->checkPermissionBool("visible"))
{
$ilErr->raiseError($this->lng->txt("msg_no_perm_read"));
}
$plugin_info = ilCloudConnector::getInfoScreenGUIClass($this->plugin_service);
$info = $plugin_info->getInfoScreen($this);
$this->ctrl->forwardCommand($info);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCloudGUI::initCreateForm (   $a_new_type)
protected

Init object creation form.

Parameters
string$a_new_type
Returns
ilPropertyFormGUI

Reimplemented from ilObjectGUI.

Definition at line 292 of file class.ilObjCloudGUI.php.

References ilObjectGUI\$lng, ilCloudConnector\getActiveServices(), ilCloudConnector\getCreationGUIClass(), ilCloudConnector\getPluginHookClass(), ilCloudConnector\getServiceClass(), ilObjectGUI\initDidacticTemplate(), ilTextAreaInputGUI\setCols(), ilFormPropertyGUI\setRequired(), ilTextInputGUI\setSize(), and ilObject\TITLE_LENGTH.

Referenced by afterSave(), and initCreationForms().

{
global $lng;
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$form = new ilPropertyFormGUI();
$form->setTarget("_top");
$form->setFormAction($this->ctrl->getFormAction($this, "save"));
$form->setTitle($this->lng->txt($a_new_type . "_new"));
// title
$ti = new ilTextInputGUI($this->lng->txt("title"), "title");
$ti->setMaxLength(ilObject::TITLE_LENGTH);
$ti->setRequired(true);
$ti->setValidationRegexp('/^[ a-zA-Z0-9\-]+$/i');
$form->addItem($ti);
// description
$ta = new ilTextAreaInputGUI($this->lng->txt("description"), "desc");
$ta->setCols(40);
$ta->setRows(2);
$form->addItem($ta);
$services_group = new ilRadioGroupInputGUI($lng->txt("cld_service"), "service");
$services_group->setRequired(true);
foreach (ilCloudConnector::getActiveServices() as $service)
{
$option = new ilRadioOption($service, $service);
$hook_object = ilCloudConnector::getPluginHookClass($option->getValue());
$option->setTitle($hook_object->txt($service));
$option->setInfo($hook_object->txt("create_info"));
$this->plugin_service = ilCloudConnector::getServiceClass($service, 0, false);
$init_gui = ilCloudConnector::getCreationGUIClass($this->plugin_service);
if($init_gui)
{
$init_gui->initPluginCreationFormSection($option);
}
$services_group->addOption($option);
}
$form->addItem($services_group);
$form = $this->initDidacticTemplate($form);
$form->addCommandButton("save", $this->lng->txt($a_new_type . "_add"));
$form->addCommandButton("cancel", $this->lng->txt("cancel"));
return $form;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCloudGUI::initCreationForms (   $a_new_type)
protected

Init creation froms.

this will create the default creation forms: new, import, clone

Parameters
string$a_new_type
Returns
array

Reimplemented from ilObject2GUI.

Definition at line 277 of file class.ilObjCloudGUI.php.

References initCreateForm().

{
$forms = array(
self::CFORM_NEW => $this->initCreateForm($a_new_type)
);
return $forms;
}

+ Here is the call graph for this function:

ilObjCloudGUI::render ( )

Definition at line 445 of file class.ilObjCloudGUI.php.

References ilObject2GUI\checkPermissionBool(), and ilCloudConnector\getInitGUIClass().

{
$init_gui = ilCloudConnector::getInitGUIClass($this->plugin_service);
$init_gui->initGUI($this, $this->checkPermissionBool("folders_create"),
$this->checkPermissionBool("upload"),
$this->checkPermissionBool("delete_files"),
$this->checkPermissionBool("delete_folders"),
$this->checkPermissionBool("download"),
$this->checkPermissionBool("files_visible"),
$this->checkPermissionBool("folders_visible"));
}

+ Here is the call graph for this function:

ilObjCloudGUI::serviceAuth (   $object)
protected

Definition at line 375 of file class.ilObjCloudGUI.php.

References $ilCtrl, ilObjectGUI\$object, ilCloudConnector\getServiceClass(), ilObject2GUI\redirectToRefId(), and ilUtil\sendFailure().

Referenced by afterSave(), and executeCommand().

{
global $ilCtrl;
try{
$service = ilCloudConnector::getServiceClass($object->getServiceName(), $object->getId());
$service->authService($ilCtrl->getLinkTarget($this, "afterServiceAuth") . "&authMode=true");
} catch (Exception $e)
{
ilUtil::sendFailure($e->getMessage(), true);
ilObjectGUI::redirectToRefId($this->parent_id);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCloudGUI::setTabs ( )

Set tabs.

Reimplemented from ilObject2GUI.

Definition at line 225 of file class.ilObjCloudGUI.php.

References $ilCtrl, and ilObjectGUI\$lng.

{
global $ilTabs, $ilCtrl, $ilAccess, $lng;
// tab for the "show content" command
if ($ilAccess->checkAccess("read", "", $this->object->getRefId()))
{
$ilTabs->addTab("content", $lng->txt("content"), $ilCtrl->getLinkTarget($this, "render"));
$ilTabs->addTab("id_info", $lng->txt("info"), $this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary"));
}
// a "properties" tab
if ($ilAccess->checkAccess("write", "", $this->object->getRefId()))
{
$ilTabs->addTab("settings", $lng->txt("settings"), $ilCtrl->getLinkTargetByClass("ilcloudpluginsettingsgui", "editSettings"));
}
// edit permissions
if ($ilAccess->checkAccess('edit_permission', "", $this->object->getRefId()))
{
$ilTabs->addTab("id_permissions", $lng->txt("perm_settings"), $this->ctrl->getLinkTargetByClass("ilpermissiongui", "perm"));
}
}

Field Documentation

ilObjCloudGUI::$plugin_service
protected

ilCloudPluginService

Definition at line 28 of file class.ilObjCloudGUI.php.


The documentation for this class was generated from the following file: