4 include_once
"./Services/Repository/classes/class.ilObjectPluginListGUI.php";
25 $this->copy_enabled =
false;
26 $this->delete_enabled =
true;
27 $this->cut_enabled =
false;
28 $this->subscribe_enabled =
true;
29 $this->link_enabled =
false;
30 $this->info_screen_enabled =
true;
31 $this->timings_enabled =
true;
33 $this->gui_class_name =
"ilobjcloudgui";
36 include_once(
'./Modules/Cloud/classes/class.ilObjCloudAccess.php');
38 $lng->loadLanguageModule(
"cld");
48 if (method_exists($header_action_gui,
"getCustomListActions")) {
50 $custom_list_actions = $header_action_gui->getCustomListActions();
52 if (is_array($custom_list_actions)) {
56 $this->commands = array_merge($this->commands, $custom_list_actions);
61 $ref_commands = parent::getCommands();
65 if (method_exists($header_action_gui,
"getCustomListActions")) {
70 if (!empty($custom_urls)) {
87 include_once(
'./Modules/Cloud/classes/class.ilObjCloudAccess.php');
89 $props[] = array(
"alert" =>
true,
"property" =>
$lng->txt(
"status"),
90 "value" =>
$lng->txt(
"cld_not_authenticated_offline"));
92 $props[] = array(
"alert" =>
true,
"property" =>
$lng->txt(
"status"),
93 "value" =>
$lng->txt(
"offline"));
109 foreach ($custom_list_actions as $custom_list_action) {
110 for (
$i = 0;
$i < count($commands);
$i++) {
111 if ($commands[
$i][
"lang_var"] == $custom_list_action[
"lang_var"]) {
112 unset($commands[
$i]);
127 foreach ($custom_urls as $custom_url) {
128 foreach ($ref_commands as &$ref_command) {
129 if ($custom_url[
"id"] === $ref_command[
"lang_var"]) {
130 $ref_command[
"link"] = $custom_url[
"link"];
145 foreach ($custom_list_actions as $custom_list_action) {
146 if (array_key_exists(
"custom_url", $custom_list_action)) {
150 "id" => $custom_list_action[
"lang_var"],
151 "link" => $custom_list_action[
"custom_url"],
fetchCustomUrlsFromCustomActions(array $custom_list_actions, &$custom_urls)
Fetches custom URLs from predefined actions and structures them appropriately.
injectCustomUrlsInCommands($custom_urls, &$ref_commands)
Inject predefined custom URLs into ref_commands and change its destination.
neutralizeCommands(array &$commands, array $custom_list_actions)
Remove recently added custom actions from dynamic field "commands" as it may pass onto other ListGUIs...
static checkOnline($a_id)
static getHeaderActionGUIClass(ilCloudPluginService $plugin_service_class)
static getServiceClass($service_name, $obj_id, $connect=true)
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
static checkAuthStatus($a_id)