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

Class ilObjCategoryGUI. More...

+ Inheritance diagram for ilObjCategoryGUI:
+ Collaboration diagram for ilObjCategoryGUI:

Public Member Functions

 ilObjCategoryGUI ($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public.
executeCommand ()
 execute command note: this method is overwritten in all container objects
 getTabs (&$tabs_gui)
 Get tabs.
 renderObject ()
 Render category.
 infoScreenObject ()
 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
 infoScreen ()
 show information screen
 initEditForm ()
 Init object edit form.
 getEditFormValues ()
 Get values for edit form.
 updateObject ()
 updates object entry in object_data
 editTranslationsObject ($a_get_post_values=false, $a_add=false)
 Edit title and translations.
 saveTranslationsObject ()
 Save title and translations.
 addTranslationObject ()
 Add a translation.
 deleteTranslationsObject ()
 Remove translation.
 importCategoriesFormObject ()
 display form for category import
 _importCategoriesForm ($a_ref_id, &$a_tpl)
 display form for category import (static, also called by RootFolderGUI)
 importCancelledObject ()
 import cancelled
 _getImportDir ()
 get user import directory name
 importCategoriesObject ()
 import categories
 importCategoriesWithRolObject ()
 import categories with local rol
 _importCategories ($a_ref_id, $withrol_tmp)
 import categories (static, also called by RootFolderGUI)
 listUsersObject ($show_delete=false)
 performDeleteUsersObject ()
 deleteUsersObject ()
 assignRolesObject ()
 assignSaveObject ()
 __getAssignableRoles ()
 __checkGlobalRoles ($new_assigned)
 __showRolesTable ($a_result_set, $a_from="")
 __showUsersTable ($a_result_set, $a_from="", $a_footer=true)
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="", $a_footer=true)
__initTableGUI ()
 __buildFilterSelect ($a_parent_ids)
 _goto ($a_target)
 editIconsObject ($a_form=null)
 Edit folder icons.
 initIconsForm ()
 updateIconsObject ()
 update container icons
- Public Member Functions inherited from ilContainerGUI
 ilContainerGUI ($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public.
 forwardToStyleSheet ()
 Forward to style object.
forwardToPageObject ()
 forward command to page object
 addPageTabs ()
 Add page tabs.
 getContainerPageHTML ()
 Get container page HTML.
 prepareOutput ($a_show_subobjects=true)
 prepare output
 showTreeFlatIcon ()
 setTitleAndDescription ()
 called by prepare output
 showPossibleSubObjects ()
 show possible sub objects selection list
 getContentGUI ()
 Get content gui object.
 setContentSubTabs ()
 Set content sub tabs.
 showAdministrationPanel (&$tpl)
 show administration panel
 __showTimingsButton (&$tpl)
 showPermanentLink (&$tpl)
 show permanent link
 switchToStdEditorObject ()
 Switch to standard page editor.
 switchToOldEditorObject ()
 Switch to old page editor.
 useNewEditorObject ()
 Use new editor (-> delete xhtml content page)
 editPageFrameObject ()
 show page editor frameset
 editPageContentObject ()
 edit page content (for repository root node and categories)
 savePageContentObject ()
 cancelPageContentObject ()
 renderItemList ($a_type="all")
 showLinkListObject ()
 clearAdminCommandsDetermination ()
 cleaer administration commands determination
newBlockTemplate ()
 determin admin commands
 addHeaderRow (&$a_tpl, $a_type, $a_show_image=true)
 adds a header row to a block template
 addStandardRow (&$a_tpl, $a_html, $a_item_ref_id="", $a_item_obj_id="", $a_image_type="")
 adds a standard row to a block template
 addMessageRow (&$a_tpl, $a_message, $a_type)
 add message row
 resetRowType ()
 setPageEditorTabs ()
 Add page editor tabs.
 addStandardContainerSubTabs ($a_include_view=true)
 Add standar container subtabs for view, manage, oderdering and text/media editor link.
 enableAdministrationPanelObject ()
 enable administration panel
 disableAdministrationPanelObject ()
 enable administration panel
 editOrderObject ()
 Edit order.
 isActiveOrdering ()
 Check if ordering is enabled.
 addToDeskObject ()
 removeFromDeskObject ()
 enableMultiDownloadObject ()
 isMultiDownloadEnabled ()
 lockObject ()
 cutObject ()
 cut object(s) out from a container and write the information to clipboard
 copyObject ()
 Copy object(s) out from a container and write the information to clipboard It is not possible to copy multiple objects at once.
 downloadObject ()
 linkObject ()
 create an new reference of an object in tree it's like a hard link of unix
 clearObject ()
 clear clipboard and go back to last object
 performPasteIntoMultipleObjectsObject ()
 initAndDisplayLinkIntoMultipleObjectsObject ()
 showPasteTreeObject ()
 Show paste tree.
 cancelMoveLinkObject ()
 Cancel move|link empty clipboard and return to parent.
 keepObjectsInClipboardObject ()
 Keep objects in the clipboard.
 initAndDisplayCopyIntoMultipleObjectsObject ()
 initAndDisplayMoveIntoObjectObject ()
 pasteObject ()
 paste object from clipboard to current place Depending on the chosen command the object(s) are linked, copied or moved
 clipboardObject ()
 Copy object(s) out from a container and write the information to clipboard It is not possible to copy multiple objects at once.
 showCustomIconsEditing ($a_input_colspan=1, ilPropertyFormGUI $a_form=null, $a_as_section=true)
 show edit section of custom icons for container
 isActiveAdministrationPanel ()
 setColumnSettings ($column_gui)
 May be overwritten in subclasses.
 allowBlocksMoving ()
 Standard is to allow blocks moving.
 allowBlocksConfigure ()
 Standard is to allow blocks configuration.
 cloneWizardPageTreeObject ()
 public
 cloneWizardPageListObject ()
 public
 cloneWizardPageObject ($a_tree_view=true)
 Show clone wizard page for container objects.
 cloneAllObject ()
 Clone all object Overwritten method for copying container objects.
 saveSortingObject ()
 Save Sorting.
 cloneNodes ($srcRef, $dstRef, &$mapping, $newName=null)
 Recursively clones all nodes of the RBAC tree.
 modifyItemGUI (&$a_item_list_gui, $a_item_data, $a_show_path)
 Modify Item ListGUI for presentation in container.
 editStylePropertiesObject ()
 Edit style properties.
 initStylePropertiesForm ()
 Init style properties form.
 createStyleObject ()
 Create Style.
 editStyleObject ()
 Edit Style.
 deleteStyleObject ()
 Delete Style.
 saveStyleSettingsObject ()
 Save style settings.
 getAsynchItemListObject ()
 Get item list command drop down asynchronously.
 redrawListItemObject ()
 Redraw a list item (ajax)
 showRepTree ($a_initial_call=false)
 Show tree.
 trashObject ()
 Show trash content of object.
 removeFromSystemObject ()
 remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method
 undeleteObject ()
 Get objects back from trash.
 confirmRemoveFromSystemObject ()
 confirmation screen remove from system
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public.
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not)
 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
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder
 getHTML ()
 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
 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.

Data Fields

 $ctrl
- Data Fields inherited from ilContainerGUI
 $bl_cnt = 1
 $multi_download_enabled = false
- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 $ilias
 $objDefinition
 $tpl
 $tree
 $lng
 $data
 $object
 $ref_id
 $obj_id
 $maxcount
 $formaction
 $return_location
 $target_frame
 $tab_target_script
 $actions
 $sub_objects
 $omit_locator = false
const CFORM_NEW = 1
const CFORM_IMPORT = 2
const CFORM_CLONE = 3

Protected Member Functions

 initCreationForms ($a_new_type)
 Init creation froms.
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook.
 editInfoObject ()
 Edit extended category settings.
 updateInfoObject ()
 Update info (extended meta data)
 initExtendedSettings ()
 build property form for extended category settings
 setEditTabs ($active_tab="settings_misc")
 resetFilterObject ()
 Reset filter (note: this function existed before data table filter has been introduced.
 applyFilterObject ()
 Apply filter.
 addUserAutoCompleteObject ()
 Show auto complete results.
- Protected Member Functions inherited from ilContainerGUI
 afterUpdate ()
 Post (successful) object update hook.
 showPasswordInstructionObject ($a_init=true)
 Show webdav password instruction.
 initFormPasswordInstruction ()
 Init password form.
 savePasswordObject ()
 Save password.
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add file manager link.
 fileManagerLaunchObject ()
 Launch jnlp.
- Protected Member Functions inherited from ilObjectGUI
 assignObject ()
 prepareOutput ()
 prepare output
 insertHeaderAction ($a_list_gui)
 Insert header action into main template.
 addHeaderAction ()
 Add header action menu.
 redrawHeaderActionObject ()
 Ajax call: redraw action header only.
 showMountWebfolderIcon ()
 setTabs ()
 set admin tabs public
 setAdminTabs ()
 set admin tabs public
 setLocator ()
 set Locator
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded)
 omitLocator ($a_omit=true)
 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)
 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.
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position.
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form.
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields.
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object.
 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
 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
 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
 __showButton ($a_cmd, $a_text, $a_target= '')
 hitsperpageObject ()
 __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
 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.
 getCenterColumnHTML ()
 Get center column.
 getRightColumnHTML ()
 Display right column.
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error.
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission.
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files.
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting.

Additional Inherited Members

- Static Public Member Functions inherited from ilContainerGUI
static _buildPath ($a_ref_id, $a_course_ref_id)
 build path

Detailed Description

Member Function Documentation

ilObjCategoryGUI::__buildFilterSelect (   $a_parent_ids)

Definition at line 1542 of file class.ilObjCategoryGUI.php.

References $_SESSION, ilLocalUser\_getUserFolderId(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), and ilUtil\formSelect().

{
$action[0] = $this->lng->txt('all_users');
$action[$this->object->getRefId()] = $this->lng->txt('users').
' ('.ilObject::_lookupTitle(ilObject::_lookupObjId($this->object->getRefId())).')';
foreach($a_parent_ids as $parent)
{
if($parent == $this->object->getRefId())
{
continue;
}
switch($parent)
{
$action[ilLocalUser::_getUserFolderId()] = $this->lng->txt('global_user');
break;
default:
$action[$parent] = $this->lng->txt('users').' ('.ilObject::_lookupTitle(ilObject::_lookupObjId($parent)).')';
break;
}
}
return ilUtil::formSelect($_SESSION['filtered_users'][$this->object->getRefId()],"filter",$action,false,true);
}

+ Here is the call graph for this function:

ilObjCategoryGUI::__checkGlobalRoles (   $new_assigned)

Definition at line 1303 of file class.ilObjCategoryGUI.php.

References $_GET, $_REQUEST, $ilUser, ilObjectGUI\checkPermission(), and ilObjectFactory\getInstanceByObjId().

Referenced by assignSaveObject().

{
global $rbacreview,$ilUser;
$this->checkPermission("cat_administrate_users");
// return true if it's not a local user
if($tmp_obj->getTimeLimitOwner() != $this->object->getRefId() and
!in_array(SYSTEM_ROLE_ID,$rbacreview->assignedRoles($ilUser->getId())))
{
return true;
}
// new assignment by form
$new_assigned = $new_assigned ? $new_assigned : array();
$assigned = $rbacreview->assignedRoles((int) $_GET['obj_id']);
// all assignable globals
if(!in_array(SYSTEM_ROLE_ID,$rbacreview->assignedRoles($ilUser->getId())))
{
$ga = $rbacreview->getGlobalAssignableRoles();
}
else
{
$ga = $rbacreview->getGlobalRolesArray();
}
$global_assignable = array();
foreach($ga as $role)
{
$global_assignable[] = $role['obj_id'];
}
$new_visible_assigned_roles = array_intersect($new_assigned,$global_assignable);
$all_assigned_roles = array_intersect($assigned,$rbacreview->getGlobalRoles());
$main_assigned_roles = array_diff($all_assigned_roles,$global_assignable);
if(!count($new_visible_assigned_roles) and !count($main_assigned_roles))
{
return false;
}
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCategoryGUI::__getAssignableRoles ( )

Definition at line 1280 of file class.ilObjCategoryGUI.php.

References $_REQUEST, $ilUser, and ilObjectFactory\getInstanceByObjId().

Referenced by assignRolesObject(), and assignSaveObject().

{
global $rbacreview,$ilUser;
// check local user
// Admin => all roles
if(in_array(SYSTEM_ROLE_ID,$rbacreview->assignedRoles($ilUser->getId())))
{
$global_roles = $rbacreview->getGlobalRolesArray();
}
elseif($tmp_obj->getTimeLimitOwner() == $this->object->getRefId())
{
$global_roles = $rbacreview->getGlobalAssignableRoles();
}
else
{
$global_roles = array();
}
return $roles = array_merge($global_roles,
$rbacreview->getAssignableChildRoles($this->object->getRefId()));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilObjCategoryGUI::__initTableGUI ( )

Reimplemented from ilObjectGUI.

Definition at line 1535 of file class.ilObjCategoryGUI.php.

Referenced by __showRolesTable(), and __showUsersTable().

{
include_once "./Services/Table/classes/class.ilTableGUI.php";
return new ilTableGUI(0,false);
}

+ Here is the caller graph for this function:

ilObjCategoryGUI::__setTableGUIBasicData ( $tbl,
$result_set,
  $a_from = "",
  $a_footer = true 
)

Definition at line 1467 of file class.ilObjCategoryGUI.php.

References $_GET, and $ilUser.

Referenced by __showRolesTable(), and __showUsersTable().

{
global $ilUser;
switch ($a_from)
{
case "listUsersObject":
$tbl->setOrderColumn($_GET["sort_by"]);
$tbl->setOrderDirection($_GET["sort_order"]);
$tbl->setOffset($_GET["offset"]);
$tbl->setMaxCount($this->all_users_count);
$tbl->setLimit($ilUser->getPref('hits_per_page'));
$tbl->setFooter("tblfooter",$this->lng->txt("previous"),$this->lng->txt("next"));
$tbl->setData($result_set);
$tbl->disable('auto_sort');
return true;
case "assignRolesObject":
$offset = $_GET["offset"];
// init sort_by (unfortunatly sort_by is preset with 'title'
if ($_GET["sort_by"] == "title" or empty($_GET["sort_by"]))
{
$_GET["sort_by"] = "login";
}
$order = $_GET["sort_by"];
$direction = $_GET["sort_order"];
break;
case "clipboardObject":
$offset = $_GET["offset"];
$order = $_GET["sort_by"];
$direction = $_GET["sort_order"];
$tbl->disable("footer");
break;
default:
$offset = $_GET["offset"];
$order = $_GET["sort_by"];
$direction = $_GET["sort_order"];
break;
}
$tbl->setOrderColumn($order);
$tbl->setOrderDirection($direction);
$tbl->setOffset($offset);
if($this->set_unlimited)
{
$tbl->setLimit($_GET["limit"]*100);
}
else
{
$tbl->setLimit($_GET['limit']);
}
$tbl->setMaxCount(count($result_set));
if($a_footer)
{
$tbl->setFooter("tblfooter",$this->lng->txt("previous"),$this->lng->txt("next"));
}
else
{
$tbl->disable('footer');
}
$tbl->setData($result_set);
}

+ Here is the caller graph for this function:

ilObjCategoryGUI::__showRolesTable (   $a_result_set,
  $a_from = "" 
)

Definition at line 1348 of file class.ilObjCategoryGUI.php.

References $_GET, ilObjectGUI\$tpl, __initTableGUI(), __setTableGUIBasicData(), ilObjectGUI\checkPermission(), ilUtil\getImagePath(), and ilObjectFactory\getInstanceByObjId().

Referenced by assignRolesObject().

{
$this->checkPermission("cat_administrate_users");
$tbl =& $this->__initTableGUI();
$tpl =& $tbl->getTemplateObject();
// SET FORMAACTION
$tpl->setCurrentBlock("tbl_form_header");
$this->ctrl->setParameter($this,'obj_id',$_GET['obj_id']);
$tpl->setVariable("FORMACTION",$this->ctrl->getFormAction($this));
$tpl->parseCurrentBlock();
// SET FOOTER BUTTONS
$tpl->setVariable("COLUMN_COUNTS",4);
$tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("arrow_downright.png"));
// $tpl->setCurrentBlock("tbl_action_button");
$tpl->setVariable("BTN_NAME","assignSave");
$tpl->setVariable("BTN_VALUE",$this->lng->txt("change_assignment"));
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("tbl_action_row");
$tpl->setVariable("TPLPATH",$this->tpl->tplPath);
$tpl->parseCurrentBlock();
$title = $this->lng->txt('role_assignment').' ('.$tmp_obj->getFullname().')';
$tbl->setTitle($title,"icon_role.png",$this->lng->txt("role_assignment"));
$tbl->setHeaderNames(array('',
$this->lng->txt("title"),
$this->lng->txt('description'),
$this->lng->txt("type")));
$tbl->setHeaderVars(array("",
"title",
"description",
"type"),
array("ref_id" => $this->object->getRefId(),
"cmd" => "assignRoles",
"obj_id" => $_GET['obj_id'],
"cmdClass" => "ilobjcategorygui",
"cmdNode" => $_GET["cmdNode"]));
$tbl->setColumnWidth(array("4%","35%","45%","16%"));
$this->set_unlimited = true;
$this->__setTableGUIBasicData($tbl,$a_result_set,$a_from,true);
$tbl->render();
$this->tpl->setVariable("ROLES_TABLE",$tbl->tpl->get());
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCategoryGUI::__showUsersTable (   $a_result_set,
  $a_from = "",
  $a_footer = true 
)

Definition at line 1403 of file class.ilObjCategoryGUI.php.

References $_GET, ilObjectGUI\$tpl, __initTableGUI(), __setTableGUIBasicData(), ilObjectGUI\checkPermission(), and ilUtil\getImagePath().

{
$this->checkPermission("cat_administrate_users");
$tbl =& $this->__initTableGUI();
$tpl =& $tbl->getTemplateObject();
// SET FORMAACTION
$tpl->setCurrentBlock("tbl_form_header");
$this->ctrl->setParameter($this,'sort_by',$_GET['sort_by']);
$this->ctrl->setParameter($this,'sort_order',$_GET['sort_order']);
$this->ctrl->setParameter($this,'offset',$_GET['offset']);
$tpl->setVariable("FORMACTION",$this->ctrl->getFormAction($this));
$tpl->parseCurrentBlock();
if($a_footer)
{
// SET FOOTER BUTTONS
$tpl->setVariable("COLUMN_COUNTS",6);
$tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("arrow_downright.png"));
$tpl->setCurrentBlock("tbl_action_button");
$tpl->setVariable("BTN_NAME","deleteUser");
$tpl->setVariable("BTN_VALUE",$this->lng->txt("delete"));
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("tbl_action_row");
$tpl->setVariable("TPLPATH",$this->tpl->tplPath);
$tpl->parseCurrentBlock();
$tbl->setFormName('cmd');
$tbl->enable('select_all');
}
$tbl->setTitle($this->lng->txt("users"),"icon_usr.png",$this->lng->txt("users"));
$tbl->setHeaderNames(array('',
$this->lng->txt("username"),
$this->lng->txt("firstname"),
$this->lng->txt("lastname"),
$this->lng->txt('context'),
$this->lng->txt('role_assignment')));
$tbl->setHeaderVars(array("",
"login",
"firstname",
"lastname",
"context",
"role_assignment"),
array("ref_id" => $this->object->getRefId(),
"cmd" => "listUsers",
"cmdClass" => "ilobjcategorygui",
"cmdNode" => $_GET["cmdNode"]));
$tbl->setColumnWidth(array("1px","20%","20%","20%","20%","20%"));
$tbl->setSelectAllCheckbox('user_ids');
$this->__setTableGUIBasicData($tbl,$a_result_set,$a_from,true);
$tbl->render();
$this->tpl->setVariable("USERS_TABLE",$tbl->tpl->get());
return true;
}

+ Here is the call graph for this function:

ilObjCategoryGUI::_getImportDir ( )

get user import directory name

Definition at line 946 of file class.ilObjCategoryGUI.php.

References ilUtil\getDataDir().

Referenced by _importCategories().

{
return ilUtil::getDataDir()."/cat_import";
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCategoryGUI::_goto (   $a_target)

Definition at line 1570 of file class.ilObjCategoryGUI.php.

References $ilErr, ilObjectGUI\$lng, ilObjectGUI\_gotoRepositoryNode(), ilObjectGUI\_gotoRepositoryRoot(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), and ilUtil\sendFailure().

{
global $ilAccess, $ilErr, $lng;
if ($ilAccess->checkAccess("read", "", $a_target))
{
}
else if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID))
{
ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"),
}
$ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
}

+ Here is the call graph for this function:

ilObjCategoryGUI::_importCategories (   $a_ref_id,
  $withrol_tmp 
)

import categories (static, also called by RootFolderGUI)

Definition at line 976 of file class.ilObjCategoryGUI.php.

References ilObjectGUI\$lng, _getImportDir(), ilUtil\createDirectory(), ilUtil\moveUploadedFile(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilUtil\unzip().

Referenced by ilObjRootFolderGUI\importCategoriesObject(), importCategoriesObject(), ilObjRootFolderGUI\importCategoriesWithRolObject(), and importCategoriesWithRolObject().

{
global $lng;
require_once("./Modules/Category/classes/class.ilCategoryImportParser.php");
// create user import directory if necessary
if (!@is_dir($import_dir))
{
}
// move uploaded file to user import directory
$file_name = $_FILES["importFile"]["name"];
// added to prevent empty file names
if (!strcmp($file_name,"")) {
ilUtil::sendFailure($lng->txt("no_import_file_found"), true);
$this->ctrl->redirect($this);
}
$parts = pathinfo($file_name);
$full_path = $import_dir."/".$file_name;
//move_uploaded_file($_FILES["importFile"]["tmp_name"], $full_path);
ilUtil::moveUploadedFile($_FILES["importFile"]["tmp_name"], $file_name, $full_path);
// unzip file
ilUtil::unzip($full_path);
$subdir = basename($parts["basename"],".".$parts["extension"]);
$xml_file = $import_dir."/".$subdir."/".$subdir.".xml";
// CategoryImportParser
//var_dump($_POST);
$importParser = new ilCategoryImportParser($xml_file, $a_ref_id, $withrol_tmp);
$importParser->startParsing();
ilUtil::sendSuccess($lng->txt("categories_imported"), true);
$this->ctrl->redirect($this);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCategoryGUI::_importCategoriesForm (   $a_ref_id,
$a_tpl 
)

display form for category import (static, also called by RootFolderGUI)

Definition at line 881 of file class.ilObjCategoryGUI.php.

References ilObjectGUI\$lng, ilUtil\formCheckbox(), and ilUtil\switchColor().

Referenced by ilObjRootFolderGUI\importCategoriesFormObject(), and importCategoriesFormObject().

{
global $lng, $rbacreview;
$a_tpl->addBlockfile("ADM_CONTENT", "adm_content", "tpl.cat_import_form.html",
"Modules/Category");
$a_tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
$a_tpl->setVariable("TXT_IMPORT_CATEGORIES", $lng->txt("import_categories"));
$a_tpl->setVariable("TXT_HIERARCHY_OPTION", $lng->txt("import_cat_localrol"));
$a_tpl->setVariable("TXT_IMPORT_FILE", $lng->txt("import_file"));
$a_tpl->setVariable("TXT_IMPORT_TABLE", $lng->txt("import_cat_table"));
$a_tpl->setVariable("BTN_IMPORT", $lng->txt("import"));
$a_tpl->setVariable("BTN_CANCEL", $lng->txt("cancel"));
// NEED TO FILL ADOPT_PERMISSIONS HTML FORM....
$parent_role_ids = $rbacreview->getParentRoleIds($a_ref_id,true);
// sort output for correct color changing
ksort($parent_role_ids);
foreach ($parent_role_ids as $key => $par)
{
if ($par["obj_id"] != SYSTEM_ROLE_ID)
{
$check = ilUtil::formCheckbox(0,"adopt[]",$par["obj_id"],1);
$output["adopt"][$key]["css_row_adopt"] = ilUtil::switchColor($key, "tblrow1", "tblrow2");
$output["adopt"][$key]["check_adopt"] = $check;
$output["adopt"][$key]["role_id"] = $par["obj_id"];
$output["adopt"][$key]["type"] = ($par["type"] == 'role' ? 'Role' : 'Template');
$output["adopt"][$key]["role_name"] = $par["title"];
}
}
//var_dump($output);
// BEGIN ADOPT PERMISSIONS
foreach ($output["adopt"] as $key => $value)
{
$a_tpl->setCurrentBlock("ADOPT_PERM_ROW");
$a_tpl->setVariable("CSS_ROW_ADOPT",$value["css_row_adopt"]);
$a_tpl->setVariable("CHECK_ADOPT",$value["check_adopt"]);
$a_tpl->setVariable("LABEL_ID",$value["role_id"]);
$a_tpl->setVariable("TYPE",$value["type"]);
$a_tpl->setVariable("ROLE_NAME",$value["role_name"]);
$a_tpl->parseCurrentBlock();
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCategoryGUI::addTranslationObject ( )

Add a translation.

Definition at line 829 of file class.ilObjCategoryGUI.php.

References $_POST, and editTranslationsObject().

{
if($_POST["title"])
{
$k = max(array_keys($_POST["title"]));
$k++;
$_POST["title"][$k] = "";
$this->editTranslationsObject(true);
}
else
{
$this->editTranslationsObject(false, true);
}
}

+ Here is the call graph for this function:

ilObjCategoryGUI::addUserAutoCompleteObject ( )
protected

Show auto complete results.

Definition at line 1109 of file class.ilObjCategoryGUI.php.

References $_REQUEST, and exit.

{
include_once './Services/User/classes/class.ilUserAutoComplete.php';
$auto = new ilUserAutoComplete();
$auto->setSearchFields(array('login','firstname','lastname','email'));
$auto->enableFieldSearchableCheck(true);
echo $auto->getList($_REQUEST['term']);
exit();
}
ilObjCategoryGUI::afterSave ( ilObject  $a_new_object)
protected

Post (successful) object creation hook.

Parameters
ilObject$a_new_object

Reimplemented from ilObjectGUI.

Definition at line 333 of file class.ilObjCategoryGUI.php.

References $ilUser, ilObjectGUI\$tree, ilObject\_lookupObjId(), ilObjStyleSheet\_lookupStandard(), ilObject\getDescription(), ilObject\getId(), ilObject\getRefId(), ilObject\getTitle(), ilObjStyleSheet\lookupObjectStyle(), ilObjectGUI\redirectToRefId(), ilUtil\sendSuccess(), ilContainerSortingSettings\setSortMode(), ilContainer\SORT_TITLE, and ilObjStyleSheet\writeStyleUsage().

{
global $ilUser, $tree;
// add default translation
$a_new_object->addTranslation($a_new_object->getTitle(),
$a_new_object->getDescription(), $ilUser->getPref("language"), true);
// default: sort by title
include_once('Services/Container/classes/class.ilContainerSortingSettings.php');
$settings = new ilContainerSortingSettings($a_new_object->getId());
$settings->save();
// inherit parents content style, if not individual
$parent_ref_id = $tree->getParentId($a_new_object->getRefId());
$parent_id = ilObject::_lookupObjId($parent_ref_id);
include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
$style_id = ilObjStyleSheet::lookupObjectStyle($parent_id);
if ($style_id > 0)
{
{
ilObjStyleSheet::writeStyleUsage($a_new_object->getId(), $style_id);
}
}
// always send a message
ilUtil::sendSuccess($this->lng->txt("cat_added"),true);
$this->ctrl->setParameter($this, "ref_id", $a_new_object->getRefId());
$this->redirectToRefId($a_new_object->getRefId(), "");
}

+ Here is the call graph for this function:

ilObjCategoryGUI::applyFilterObject ( )
protected

Apply filter.

Returns

Definition at line 1038 of file class.ilObjCategoryGUI.php.

References listUsersObject(), and ilUserTableGUI\MODE_LOCAL_USER.

{
global $ilTabs;
include_once("./Services/User/classes/class.ilUserTableGUI.php");
$utab = new ilUserTableGUI($this, "listUsers", ilUserTableGUI::MODE_LOCAL_USER);
$utab->resetOffset();
$utab->writeFilterToSession();
$this->listUsersObject();
}

+ Here is the call graph for this function:

ilObjCategoryGUI::assignRolesObject ( )

Definition at line 1174 of file class.ilObjCategoryGUI.php.

References $_GET, __getAssignableRoles(), __showRolesTable(), ilObjectGUI\checkPermission(), ilUtil\formCheckbox(), ilObjectFactory\getInstanceByObjId(), listUsersObject(), and ilUtil\sendFailure().

Referenced by assignSaveObject().

{
global $rbacreview,$ilTabs;
$this->checkPermission("cat_administrate_users");
include_once './Services/User/classes/class.ilLocalUser.php';
if(!isset($_GET['obj_id']))
{
ilUtil::sendFailure('no_user_selected');
$this->listUsersObject();
return true;
}
$ilTabs->clearTargets();
$ilTabs->setBackTarget($this->lng->txt('backto_lua'), $this->ctrl->getLinkTarget($this,'listUsers'));
global $ilHelp;
$ilHelp->setScreenIdComponent("cat");
$ilHelp->setScreenId("administrate_user");
$ilHelp->setSubScreenId("assign_roles");
$roles = $this->__getAssignableRoles();
if(!count($roles))
{
#ilUtil::sendInfo($this->lng->txt('no_roles_user_can_be_assigned_to'));
#$this->listUsersObject();
#return true;
}
$this->tpl->addBlockfile('ADM_CONTENT','adm_content','tpl.cat_role_assignment.html',
"Modules/Category");
$ass_roles = $rbacreview->assignedRoles($_GET['obj_id']);
$counter = 0;
foreach($roles as $role)
{
$role_obj =& ilObjectFactory::getInstanceByObjId($role['obj_id']);
$disabled = false;
$f_result[$counter][] = ilUtil::formCheckbox(in_array($role['obj_id'],$ass_roles) ? 1 : 0,
'role_ids[]',
$role['obj_id'],
$disabled);
$f_result[$counter][] = $role_obj->getTitle() ? $role_obj->getTitle() : "";
$f_result[$counter][] = $role_obj->getDescription() ? $role_obj->getDescription() : "";
$f_result[$counter][] = $role['role_type'] == 'global' ?
$this->lng->txt('global') :
$this->lng->txt('local');
unset($role_obj);
++$counter;
}
$this->__showRolesTable($f_result,"assignRolesObject");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCategoryGUI::assignSaveObject ( )

Definition at line 1235 of file class.ilObjCategoryGUI.php.

References $_GET, $_POST, $_REQUEST, __checkGlobalRoles(), __getAssignableRoles(), ilLocalUser\_getAllUserIds(), assignRolesObject(), ilObjectGUI\checkPermission(), listUsersObject(), ilUtil\sendFailure(), and ilUtil\sendSuccess().

{
global $rbacreview,$rbacadmin;
$this->checkPermission("cat_administrate_users");
include_once './Services/User/classes/class.ilLocalUser.php';
// check hack
if(!isset($_GET['obj_id']) or !in_array($_REQUEST['obj_id'],ilLocalUser::_getAllUserIds()))
{
ilUtil::sendFailure('no_user_selected');
$this->listUsersObject();
return true;
}
$roles = $this->__getAssignableRoles();
// check minimum one global role
if(!$this->__checkGlobalRoles($_POST['role_ids']))
{
ilUtil::sendFailure($this->lng->txt('no_global_role_left'));
return false;
}
$new_role_ids = $_POST['role_ids'] ? $_POST['role_ids'] : array();
$assigned_roles = $rbacreview->assignedRoles((int) $_REQUEST['obj_id']);
foreach($roles as $role)
{
if(in_array($role['obj_id'],$new_role_ids) and !in_array($role['obj_id'],$assigned_roles))
{
$rbacadmin->assignUser($role['obj_id'],(int) $_REQUEST['obj_id']);
}
if(in_array($role['obj_id'],$assigned_roles) and !in_array($role['obj_id'],$new_role_ids))
{
$rbacadmin->deassignUser($role['obj_id'],(int) $_REQUEST['obj_id']);
}
}
ilUtil::sendSuccess($this->lng->txt('role_assignment_updated'));
return true;
}

+ Here is the call graph for this function:

ilObjCategoryGUI::deleteTranslationsObject ( )

Remove translation.

Definition at line 847 of file class.ilObjCategoryGUI.php.

References $_POST, editTranslationsObject(), saveTranslationsObject(), and ilUtil\sendFailure().

{
foreach($_POST["title"] as $k => $v)
{
if ($_POST["check"][$k])
{
// default translation cannot be deleted
if($k != $_POST["default"])
{
unset($_POST["title"][$k]);
unset($_POST["desc"][$k]);
unset($_POST["lang"][$k]);
}
else
{
ilUtil::sendFailure($this->lng->txt("msg_no_default_language"));
return $this->editTranslationsObject();
}
}
}
}

+ Here is the call graph for this function:

ilObjCategoryGUI::deleteUsersObject ( )

Definition at line 1143 of file class.ilObjCategoryGUI.php.

References $_POST, ilObjUser\_lookupName(), ilObjectGUI\checkPermission(), listUsersObject(), and ilUtil\sendFailure().

{
$this->checkPermission("cat_administrate_users");
if(!count($_POST['id']))
{
ilUtil::sendFailure($this->lng->txt('no_users_selected'));
$this->listUsersObject();
return true;
}
include_once './Services/Utilities/classes/class.ilConfirmationGUI.php';
$confirm = new ilConfirmationGUI();
$confirm->setFormAction($this->ctrl->getFormAction($this));
$confirm->setHeaderText($this->lng->txt('sure_delete_selected_users'));
$confirm->setConfirm($this->lng->txt('delete'), 'performDeleteUsers');
$confirm->setCancel($this->lng->txt('cancel'), 'listUsers');
foreach($_POST['id'] as $user)
{
$name = ilObjUser::_lookupName($user);
$confirm->addItem(
'user_ids[]',
$user,
$name['lastname'].', '.$name['firstname'].' ['.$name['login'].']'
);
}
$this->tpl->setContent($confirm->getHTML());
}

+ Here is the call graph for this function:

ilObjCategoryGUI::editIconsObject (   $a_form = null)

Edit folder icons.

Definition at line 1597 of file class.ilObjCategoryGUI.php.

References ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), and initIconsForm().

Referenced by updateIconsObject().

{
global $tpl;
$this->checkPermission('write');
$this->tabs_gui->setTabActive('settings');
if(!$a_form)
{
$a_form = $this->initIconsForm();
}
$tpl->setContent($a_form->getHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCategoryGUI::editInfoObject ( )
protected

Edit extended category settings.

protected

Definition at line 447 of file class.ilObjCategoryGUI.php.

References ilObjectGUI\checkPermission(), initExtendedSettings(), and setEditTabs().

Referenced by updateInfoObject().

{
$this->checkPermission("write");
$this->setEditTabs();
$this->tabs_gui->activateTab('settings');
$this->tabs_gui->setSubTabActive('edit_cat_settings');
$this->tpl->setContent($this->form->getHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCategoryGUI::editTranslationsObject (   $a_get_post_values = false,
  $a_add = false 
)

Edit title and translations.

Definition at line 730 of file class.ilObjCategoryGUI.php.

References $_POST, ilObjectGUI\$data, ilObjectGUI\$tpl, and setEditTabs().

Referenced by addTranslationObject(), deleteTranslationsObject(), and saveTranslationsObject().

{
global $tpl;
$this->ctrl->redirectByClass("ilobjecttranslationgui", "");
$this->lng->loadLanguageModule($this->object->getType());
$this->setEditTabs("settings_trans");
include_once("./Services/Object/classes/class.ilObjectTranslationTableGUI.php");
$table = new ilObjectTranslationTableGUI($this, "editTranslations", true,
"Translation");
if ($a_get_post_values)
{
$vals = array();
foreach($_POST["title"] as $k => $v)
{
$vals[] = array("title" => $v,
"desc" => $_POST["desc"][$k],
"lang" => $_POST["lang"][$k],
"default" => ($_POST["default"] == $k));
}
$table->setData($vals);
}
else
{
$data = $this->object->getTranslations();
foreach($data["Fobject"] as $k => $v)
{
$data["Fobject"][$k]["default"] = ($k == $data["default_language"]);
}
if($a_add)
{
$data["Fobject"][++$k]["title"] = "";
}
$table->setData($data["Fobject"]);
}
$tpl->setContent($table->getHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilObjCategoryGUI::executeCommand ( )

execute command note: this method is overwritten in all container objects

Reimplemented from ilContainerGUI.

Definition at line 51 of file class.ilObjCategoryGUI.php.

References $_GET, $cmd, $ilCtrl, $ret, ilObjectGUI\addHeaderAction(), ilObjectGUI\checkPermission(), ilObjectGUI\checkPermissionBool(), ilContainerGUI\forwardToPageObject(), ilContainerGUI\forwardToStyleSheet(), ilObjStyleSheet\getContentStylePath(), ilObjectGUI\getCreationMode(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), infoScreen(), ilObjectGUI\prepareOutput(), renderObject(), setEditTabs(), and ilContainerGUI\showRepTree().

{
global $rbacsystem, $ilNavigationHistory, $ilAccess, $ilCtrl,$ilTabs;
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd();
// show repository tree
$this->showRepTree(true);
switch($next_class)
{
case "ilobjusergui":
include_once('./Services/User/classes/class.ilObjUserGUI.php');
$this->tabs_gui->setTabActive('administrate_users');
if(!$_GET['obj_id'])
{
$this->gui_obj = new ilObjUserGUI("",$_GET['ref_id'],true, false);
$this->gui_obj->setCreationMode($this->creation_mode);
$ret =& $this->ctrl->forwardCommand($this->gui_obj);
}
else
{
$this->gui_obj = new ilObjUserGUI("", $_GET['obj_id'],false, false);
$this->gui_obj->setCreationMode($this->creation_mode);
$ret =& $this->ctrl->forwardCommand($this->gui_obj);
}
$ilTabs->clearTargets();
$ilTabs->setBackTarget($this->lng->txt('backto_lua'), $this->ctrl->getLinkTarget($this,'listUsers'));
global $ilHelp;
$ilHelp->setScreenIdComponent("cat");
$ilHelp->setScreenId("administrate_user");
$ilHelp->setSubScreenId($ilCtrl->getCmd());
break;
case "ilobjuserfoldergui":
include_once('./Services/User/classes/class.ilObjUserFolderGUI.php');
$this->gui_obj = new ilObjUserFolderGUI("",(int) $_GET['ref_id'],true, false);
$this->gui_obj->setUserOwnerId((int) $_GET['ref_id']);
$this->gui_obj->setCreationMode($this->creation_mode);
$ret =& $this->ctrl->forwardCommand($this->gui_obj);
$ilTabs->clearTargets();
$ilTabs->setBackTarget($this->lng->txt('backto_lua'), $this->ctrl->getLinkTarget($this,'listUsers'));
global $ilHelp;
$ilHelp->setScreenIdComponent("cat");
$ilHelp->setScreenId("administrate_user");
$ilHelp->setSubScreenId($ilCtrl->getCmd());
break;
case "ilcolumngui":
$this->checkPermission("read");
$this->prepareOutput();
include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
$this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
ilObjStyleSheet::getContentStylePath($this->object->getStyleSheetId()));
$this->renderObject();
break;
case 'ilpermissiongui':
$this->prepareOutput();
$this->tabs_gui->setTabActive('perm_settings');
include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
$perm_gui =& new ilPermissionGUI($this);
$ret =& $this->ctrl->forwardCommand($perm_gui);
break;
case 'ilinfoscreengui':
if ($this->info_screen_enabled)
{
$this->prepareOutput();
$this->infoScreen();
}
break;
case 'ilcontainerlinklistgui':
include_once("Services/Container/classes/class.ilContainerLinkListGUI.php");
$link_list_gui =& new ilContainerLinkListGUI();
$ret =& $this->ctrl->forwardCommand($link_list_gui);
break;
// container page editing
case "ilcontainerpagegui":
$this->prepareOutput(false);
if ($ret != "")
{
$this->tpl->setContent($ret);
}
break;
case 'ilobjectcopygui':
$this->prepareOutput();
include_once './Services/Object/classes/class.ilObjectCopyGUI.php';
$cp = new ilObjectCopyGUI($this);
$cp->setType('cat');
$this->ctrl->forwardCommand($cp);
break;
case "ilobjstylesheetgui":
break;
case 'ilusertablegui':
include_once './Services/User/classes/class.ilUserTableGUI.php';
$u_table = new ilUserTableGUI($this, "listUsers");
$u_table->initFilter();
$this->ctrl->setReturn($this,'listUsers');
$this->ctrl->forwardCommand($u_table);
break;
case "ilcommonactiondispatchergui":
$this->prepareOutput();
include_once("Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
$this->ctrl->forwardCommand($gui);
break;
case 'ildidactictemplategui':
$this->ctrl->setReturn($this,'edit');
include_once './Services/DidacticTemplate/classes/class.ilDidacticTemplateGUI.php';
$did = new ilDidacticTemplateGUI($this);
$this->ctrl->forwardCommand($did);
break;
case 'ilexportgui':
$this->prepareOutput();
$this->tabs_gui->setTabActive('export');
include_once './Services/Export/classes/class.ilExportGUI.php';
$exp = new ilExportGUI($this);
$exp->addFormat('xml');
$this->ctrl->forwardCommand($exp);
break;
case 'ilobjecttranslationgui':
$this->checkPermissionBool("write");
$this->prepareOutput();
//$this->tabs_gui->setTabActive('export');
$this->setEditTabs("settings_trans");
include_once("./Services/Object/classes/class.ilObjectTranslationGUI.php");
$transgui = new ilObjectTranslationGUI($this);
$this->ctrl->forwardCommand($transgui);
break;
default:
if ($cmd == "infoScreen")
{
$this->checkPermission("visible");
}
else
{
$this->checkPermission("read");
}
// add entry to navigation history
if (!$this->getCreationMode() &&
$ilAccess->checkAccess("read", "", $_GET["ref_id"]))
{
$ilNavigationHistory->addItem($_GET["ref_id"],
$ilCtrl->getLinkTargetByClass("ilrepositorygui", "frameset"), "cat");
}
$this->prepareOutput();
include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
if (is_object($this->object))
{
$this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
ilObjStyleSheet::getContentStylePath($this->object->getStyleSheetId()));
}
if(!$cmd)
{
$cmd = "render";
}
$cmd .= "Object";
$this->$cmd();
break;
}
$this->addHeaderAction();
return true;
}

+ Here is the call graph for this function:

ilObjCategoryGUI::getEditFormValues ( )

Get values for edit form.

Returns
array

Reimplemented from ilContainerGUI.

Definition at line 636 of file class.ilObjCategoryGUI.php.

{
// values are set in initEditForm()
}
ilObjCategoryGUI::getTabs ( $tabs_gui)

Get tabs.

Reimplemented from ilContainerGUI.

Definition at line 243 of file class.ilObjCategoryGUI.php.

References $_GET, ilObjectGUI\$lng, and ilUserAccountSettings\getInstance().

{
global $rbacsystem, $lng, $ilHelp, $ilAccess;
if ($this->ctrl->getCmd() == "editPageContent")
{
return;
}
#$this->ctrl->setParameter($this,"ref_id",$this->ref_id);
$ilHelp->setScreenIdComponent("cat");
if ($rbacsystem->checkAccess('read',$this->ref_id))
{
$force_active = ($_GET["cmd"] == "" || $_GET["cmd"] == "render")
? true
: false;
$tabs_gui->addTab("view_content", $lng->txt("content"),
$this->ctrl->getLinkTarget($this, ""));
//BEGIN ChangeEvent add info tab to category object
if ($this->info_screen_enabled)
{
$force_active = ($this->ctrl->getNextClass() == "ilinfoscreengui"
|| strtolower($_GET["cmdClass"]) == "ilnotegui")
? true
: false;
$tabs_gui->addTarget("info_short",
$this->ctrl->getLinkTargetByClass(
array("ilobjcategorygui", "ilinfoscreengui"), "showSummary"),
array("showSummary","", "infoScreen"),
"", "", $force_active);
}
//END ChangeEvent add info tab to category object
}
if ($rbacsystem->checkAccess('write',$this->ref_id))
{
$force_active = ($_GET["cmd"] == "edit")
? true
: false;
$tabs_gui->addTarget("settings",
$this->ctrl->getLinkTarget($this, "edit"), "edit", get_class($this)
, "", $force_active);
}
include_once './Services/User/classes/class.ilUserAccountSettings.php';
if(
ilUserAccountSettings::getInstance()->isLocalUserAdministrationEnabled() and
$rbacsystem->checkAccess('cat_administrate_users',$this->ref_id))
{
$tabs_gui->addTarget("administrate_users",
$this->ctrl->getLinkTarget($this, "listUsers"), "listUsers", get_class($this));
}
if($ilAccess->checkAccess('write','',$this->object->getRefId()))
{
$tabs_gui->addTarget(
'export',
$this->ctrl->getLinkTargetByClass('ilexportgui',''),
'export',
'ilexportgui'
);
}
// parent tabs (all container: edit_permission, clipboard, trash
parent::getTabs($tabs_gui);
}

+ Here is the call graph for this function:

ilObjCategoryGUI::ilObjCategoryGUI (   $a_data,
  $a_id,
  $a_call_by_reference = true,
  $a_prepare_output = true 
)

Constructor public.

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

References $GLOBALS, ilContainer\_lookupContainerSetting(), ilContainerGUI\ilContainerGUI(), and ilObjectServiceSettingsGUI\INFO_TAB_VISIBILITY.

{
//global $ilCtrl;
// CONTROL OPTIONS
//$this->ctrl =& $ilCtrl;
//$this->ctrl->saveParameter($this,array("ref_id","cmdClass"));
$GLOBALS['lng']->loadLanguageModule('cat');
$this->type = "cat";
$this->ilContainerGUI($a_data,(int) $a_id,$a_call_by_reference,false);
if (is_object($this->object))
{
include_once("./Services/Container/classes/class.ilContainer.php");
include_once("./Services/Object/classes/class.ilObjectServiceSettingsGUI.php");
$this->info_screen_enabled = ilContainer::_lookupContainerSetting(
$this->object->getId(),
true);
}
}

+ Here is the call graph for this function:

ilObjCategoryGUI::importCancelledObject ( )

import cancelled

private

Definition at line 938 of file class.ilObjCategoryGUI.php.

{
$this->ctrl->redirect($this);
}
ilObjCategoryGUI::importCategoriesFormObject ( )

display form for category import

Definition at line 873 of file class.ilObjCategoryGUI.php.

References _importCategoriesForm().

{
ilObjCategoryGUI::_importCategoriesForm($this->ref_id, $this->tpl);
}

+ Here is the call graph for this function:

ilObjCategoryGUI::importCategoriesObject ( )

import categories

Definition at line 954 of file class.ilObjCategoryGUI.php.

References $_GET, and _importCategories().

{
// call to importCategories with $withrol = 0
}

+ Here is the call graph for this function:

ilObjCategoryGUI::importCategoriesWithRolObject ( )

import categories with local rol

Definition at line 964 of file class.ilObjCategoryGUI.php.

References $_GET, and _importCategories().

{
//echo "entra aqui";
// call to importCategories with $withrol = 1
}

+ Here is the call graph for this function:

ilObjCategoryGUI::infoScreen ( )

show information screen

Definition at line 381 of file class.ilObjCategoryGUI.php.

References $_GET, $ilCtrl, ilAdvancedMDRecordGUI\MODE_INFO, and ilAdvancedMDRecordGUI\setInfoObject().

Referenced by executeCommand(), and infoScreenObject().

{
global $ilAccess, $ilCtrl;
if (!$ilAccess->checkAccess("visible", "", $this->ref_id))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
if (!$this->info_screen_enabled)
{
return;
}
// #10986
$this->tabs_gui->setTabActive('info_short');
include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
$info = new ilInfoScreenGUI($this);
$info->enablePrivateNotes();
if ($ilAccess->checkAccess("read", "", $_GET["ref_id"]))
{
$info->enableNews();
}
// no news editing for files, just notifications
$info->enableNewsEditing(false);
if ($ilAccess->checkAccess("write", "", $_GET["ref_id"]))
{
$news_set = new ilSetting("news");
$enable_internal_rss = $news_set->get("enable_rss_for_internal");
if ($enable_internal_rss)
{
$info->setBlockProperty("news", "settings", true);
$info->setBlockProperty("news", "public_notifications_option", true);
}
}
include_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
$record_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_INFO,'cat',$this->object->getId());
$record_gui->setInfoObject($info);
$record_gui->parse();
// standard meta data
$info->addMetaDataSections($this->object->getId(),0, $this->object->getType());
// forward the command
if ($ilCtrl->getNextClass() == "ilinfoscreengui")
{
$ilCtrl->forwardCommand($info);
}
else
{
return $ilCtrl->getHTML($info);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCategoryGUI::infoScreenObject ( )

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 371 of file class.ilObjCategoryGUI.php.

References infoScreen().

{
$this->ctrl->setCmd("showSummary");
$this->ctrl->setCmdClass("ilinfoscreengui");
$this->infoScreen();
}

+ Here is the call graph for this function:

ilObjCategoryGUI::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 ilObjectGUI.

Definition at line 326 of file class.ilObjCategoryGUI.php.

{
$forms = parent::initCreationForms($a_new_type);
//unset($forms[self::CFORM_IMPORT]);
return $forms;
}
ilObjCategoryGUI::initEditForm ( )

Init object edit form.

Returns
ilPropertyFormGUI

Reimplemented from ilObjectGUI.

Definition at line 541 of file class.ilObjCategoryGUI.php.

References ilMDLanguageItem\_getLanguages(), ilObjectServiceSettingsGUI\INFO_TAB_VISIBILITY, ilObjectGUI\initDidacticTemplate(), ilObjectServiceSettingsGUI\initServiceSettingsForm(), ilObjectServiceSettingsGUI\NEWS_VISIBILITY, setEditTabs(), ilRadioOption\setInfo(), ilFormPropertyGUI\setInfo(), ilFormPropertyGUI\setRequired(), ilTextAreaInputGUI\setRows(), ilContainer\SORT_MANUAL, ilContainer\SORT_TITLE, and ilObject\TITLE_LENGTH.

Referenced by updateObject().

{
$this->lng->loadLanguageModule($this->object->getType());
$this->setEditTabs();
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$form = new ilPropertyFormGUI();
$form->setFormAction($this->ctrl->getFormAction($this));
$form->setTitle($this->lng->txt($this->object->getType()."_edit"));
// title/description
$trans = $this->object->getTranslations();
$def = $trans["Fobject"][0]; // default
$title = new ilTextInputGUI($this->lng->txt("title"), "title");
$title->setRequired(true);
$title->setSize(min(40, ilObject::TITLE_LENGTH));
$title->setMaxLength(ilObject::TITLE_LENGTH);
$title->setValue($def["title"]);
$form->addItem($title);
if(sizeof($trans["Fobject"]) > 1)
{
include_once('Services/MetaData/classes/class.ilMDLanguageItem.php');
$title->setInfo($this->lng->txt("language").": ".$languages[$def["lang"]].
' <a href="'.$this->ctrl->getLinkTarget($this, "editTranslations").
'">&raquo; '.$this->lng->txt("cat_more_translations").'</a>');
unset($languages);
}
$desc = new ilTextAreaInputGUI($this->lng->txt("description"), "desc");
$desc->setRows(2);
$desc->setCols(40);
$desc->setValue($def["desc"]);
$form->addItem($desc);
// Show didactic template type
$this->initDidacticTemplate($form);
// presentation
$pres = new ilFormSectionHeaderGUI();
$pres->setTitle($this->lng->txt('obj_presentation'));
$form->addItem($pres);
// sorting
include_once('Services/Container/classes/class.ilContainerSortingSettings.php');
$settings = new ilContainerSortingSettings($this->object->getId());
$sort = new ilRadioGroupInputGUI($this->lng->txt('sorting_header'), "sorting");
$sort_title = new ilRadioOption($this->lng->txt('sorting_title_header'),
$sort_title->setInfo($this->lng->txt('sorting_info_title'));
$sort->addOption($sort_title);
$sort_manual = new ilRadioOption($this->lng->txt('sorting_manual_header'),
$sort_manual->setInfo($this->lng->txt('sorting_info_manual'));
$sort->addOption($sort_manual);
$sort->setValue($settings->getSortMode());
$form->addItem($sort);
// icon settings
// $this->showCustomIconsEditing(1, $form, false);
// Edit ecs export settings
include_once 'Modules/Category/classes/class.ilECSCategorySettings.php';
$ecs = new ilECSCategorySettings($this->object);
$ecs->addSettingsToForm($form, 'cat');
// services
$sh->setTitle($this->lng->txt('obj_features'));
$form->addItem($sh);
include_once './Services/Object/classes/class.ilObjectServiceSettingsGUI.php';
$this->object->getId(),
$form,
array(
)
);
$form->addCommandButton("update", $this->lng->txt("save"));
// $form->addCommandButton("addTranslation", $this->lng->txt("add_translation"));
return $form;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCategoryGUI::initExtendedSettings ( )
protected

build property form for extended category settings

protected

Definition at line 483 of file class.ilObjCategoryGUI.php.

References ilAdvancedMDRecordGUI\MODE_EDITOR, and ilAdvancedMDRecordGUI\setPropertyForm().

Referenced by editInfoObject().

{
if(is_object($this->form))
{
return true;
}
include_once('Services/Form/classes/class.ilPropertyFormGUI.php');
$this->form = new ilPropertyFormGUI();
$this->form->setFormAction($this->ctrl->getFormAction($this));
$this->form->setTitle($this->lng->txt('ext_cat_settings'));
$this->form->addCommandButton('updateInfo',$this->lng->txt('save'));
$this->form->addCommandButton('editInfo',$this->lng->txt('cancel'));
include_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
$record_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_EDITOR,'cat',$this->object->getId());
$record_gui->setPropertyForm($this->form);
$record_gui->parse();
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCategoryGUI::initIconsForm ( )

Definition at line 1613 of file class.ilObjCategoryGUI.php.

References setEditTabs(), and ilContainerGUI\showCustomIconsEditing().

Referenced by editIconsObject(), and updateIconsObject().

{
$this->setEditTabs("icons");
include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
$form = new ilPropertyFormGUI();
$form->setFormAction($this->ctrl->getFormAction($this));
$this->showCustomIconsEditing(1, $form);
// $form->setTitle($this->lng->txt('edit_grouping'));
$form->addCommandButton('updateIcons', $this->lng->txt('save'));
return $form;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCategoryGUI::listUsersObject (   $show_delete = false)

Definition at line 1050 of file class.ilObjCategoryGUI.php.

References $ilUser, ilUserTableGUI\MODE_LOCAL_USER, and ilUtil\sendInfo().

Referenced by applyFilterObject(), assignRolesObject(), assignSaveObject(), deleteUsersObject(), performDeleteUsersObject(), and resetFilterObject().

{
global $ilUser,$rbacreview, $ilToolbar;
include_once './Services/User/classes/class.ilLocalUser.php';
include_once './Services/User/classes/class.ilObjUserGUI.php';
global $rbacsystem,$rbacreview;
if(!$rbacsystem->checkAccess("cat_administrate_users",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_admin_users"),$this->ilias->error_obj->MESSAGE);
}
$this->tabs_gui->setTabActive('administrate_users');
$this->tpl->addBlockfile('ADM_CONTENT','adm_content','tpl.cat_admin_users.html',
"Modules/Category");
if(count($rbacreview->getGlobalAssignableRoles()) or in_array(SYSTEM_ROLE_ID,$rbacreview->assignedRoles($ilUser->getId())))
{
$ilToolbar->addButton(
$this->lng->txt('add_user'),
$this->ctrl->getLinkTargetByClass('ilobjusergui','create')
);
$ilToolbar->addButton(
$this->lng->txt('import_users'),
$this->ctrl->getLinkTargetByClass('ilobjuserfoldergui','importUserForm')
);
}
else
{
ilUtil::sendInfo($this->lng->txt('no_roles_user_can_be_assigned_to'));
}
if($show_delete)
{
$this->tpl->setCurrentBlock("confirm_delete");
$this->tpl->setVariable("CONFIRM_FORMACTION",$this->ctrl->getFormAction($this));
$this->tpl->setVariable("TXT_CANCEL",$this->lng->txt('cancel'));
$this->tpl->setVariable("CONFIRM_CMD",'performDeleteUsers');
$this->tpl->setVariable("TXT_CONFIRM",$this->lng->txt('delete'));
$this->tpl->parseCurrentBlock();
}
$this->lng->loadLanguageModule('user');
include_once("./Services/User/classes/class.ilUserTableGUI.php");
$utab = new ilUserTableGUI($this, 'listUsers',ilUserTableGUI::MODE_LOCAL_USER);
$this->tpl->setVariable('USERS_TABLE',$utab->getHTML());
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCategoryGUI::performDeleteUsersObject ( )

Definition at line 1120 of file class.ilObjCategoryGUI.php.

References $_POST, ilLocalUser\_getAllUserIds(), ilObjectGUI\checkPermission(), ilObjectFactory\getInstanceByObjId(), listUsersObject(), and ilUtil\sendSuccess().

{
include_once './Services/User/classes/class.ilLocalUser.php';
$this->checkPermission("cat_administrate_users");
foreach($_POST['user_ids'] as $user_id)
{
if(!in_array($user_id,ilLocalUser::_getAllUserIds($this->object->getRefId())))
{
die('user id not valid');
}
if(!$tmp_obj =& ilObjectFactory::getInstanceByObjId($user_id,false))
{
continue;
}
$tmp_obj->delete();
}
ilUtil::sendSuccess($this->lng->txt('deleted_users'));
$this->listUsersObject();
return true;
}

+ Here is the call graph for this function:

ilObjCategoryGUI::renderObject ( )

Render category.

Reimplemented from ilContainerGUI.

Definition at line 316 of file class.ilObjCategoryGUI.php.

References $ret.

Referenced by executeCommand().

{
global $ilTabs;
$ilTabs->activateTab("view_content");
return $ret;
}

+ Here is the caller graph for this function:

ilObjCategoryGUI::resetFilterObject ( )
protected

Reset filter (note: this function existed before data table filter has been introduced.

Definition at line 1023 of file class.ilObjCategoryGUI.php.

References listUsersObject(), and ilUserTableGUI\MODE_LOCAL_USER.

{
include_once("./Services/User/classes/class.ilUserTableGUI.php");
$utab = new ilUserTableGUI($this, "listUsers",ilUserTableGUI::MODE_LOCAL_USER);
$utab->resetOffset();
$utab->resetFilter();
// from "old" implementation
$this->listUsersObject();
}

+ Here is the call graph for this function:

ilObjCategoryGUI::saveTranslationsObject ( )

Save title and translations.

Definition at line 774 of file class.ilObjCategoryGUI.php.

References $_POST, ilObjectGUI\checkPermissionBool(), editTranslationsObject(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilUtil\stripSlashes().

Referenced by deleteTranslationsObject().

{
if (!$this->checkPermissionBool("write"))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
// default language set?
if (!isset($_POST["default"]))
{
ilUtil::sendFailure($this->lng->txt("msg_no_default_language"));
return $this->editTranslationsObject(true);
}
// all languages set?
if (array_key_exists("",$_POST["lang"]))
{
ilUtil::sendFailure($this->lng->txt("msg_no_language_selected"));
return $this->editTranslationsObject(true);
}
// no single language is selected more than once?
if (count(array_unique($_POST["lang"])) < count($_POST["lang"]))
{
ilUtil::sendFailure($this->lng->txt("msg_multi_language_selected"));
return $this->editTranslationsObject(true);
}
// save the stuff
$this->object->removeTranslations();
foreach($_POST["title"] as $k => $v)
{
// update object data if default
$is_default = ($_POST["default"] == $k);
if($is_default)
{
$this->object->setTitle(ilUtil::stripSlashes($v));
$this->object->setDescription(ilUtil::stripSlashes($_POST["desc"][$k]));
$this->object->update();
}
$this->object->addTranslation(
$is_default);
}
ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"), true);
$this->ctrl->redirect($this, "editTranslations");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCategoryGUI::setEditTabs (   $active_tab = "settings_misc")
protected

Definition at line 505 of file class.ilObjCategoryGUI.php.

References $ilSetting, and ilAdvancedMDRecord\_getActivatedObjTypes().

Referenced by editInfoObject(), editTranslationsObject(), executeCommand(), initEditForm(), initIconsForm(), and updateObject().

{
global $ilSetting, $ilTabs;
$this->tabs_gui->addSubTab("settings_misc",
$this->lng->txt("settings"),
$this->ctrl->getLinkTarget($this, "edit"));
/*$this->tabs_gui->addSubTab("settings_trans",
$this->lng->txt("title_and_translations"),
$this->ctrl->getLinkTarget($this, "editTranslations"));*/
$this->tabs_gui->addSubTab("settings_trans",
$this->lng->txt("obj_multilinguality"),
$this->ctrl->getLinkTargetByClass("ilobjecttranslationgui", ""));
// custom icon
if ($ilSetting->get("custom_icons"))
{
$this->tabs_gui->addSubTab("icons",
$this->lng->txt("icon_settings"),
$this->ctrl->getLinkTarget($this,'editIcons'));
}
$this->tabs_gui->activateTab("settings");
$this->tabs_gui->activateSubTab($active_tab);
include_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDRecord.php');
{
$this->tabs_gui->addSubTabTarget("edit_cat_settings",
$this->ctrl->getLinkTarget($this,'editInfo'),
"editInfo", get_class($this));
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCategoryGUI::updateIconsObject ( )

update container icons

Definition at line 1632 of file class.ilObjCategoryGUI.php.

References $_POST, ilObjectGUI\checkPermission(), editIconsObject(), initIconsForm(), and ilUtil\sendSuccess().

{
$this->checkPermission('write');
$form = $this->initIconsForm();
if($form->checkInput())
{
//save custom icons
if ($this->ilias->getSetting("custom_icons"))
{
if($_POST["cont_big_icon_delete"])
{
$this->object->removeBigIcon();
}
if($_POST["cont_small_icon_delete"])
{
$this->object->removeSmallIcon();
}
if($_POST["cont_tiny_icon_delete"])
{
$this->object->removeTinyIcon();
}
$this->object->saveIcons($_FILES["cont_big_icon"]['tmp_name'],
$_FILES["cont_small_icon"]['tmp_name'], $_FILES["cont_tiny_icon"]['tmp_name']);
}
ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"),true);
$this->ctrl->redirect($this,"editIcons");
}
$form->setValuesByPost();
$this->editIconsObject($form);
}

+ Here is the call graph for this function:

ilObjCategoryGUI::updateInfoObject ( )
protected

Update info (extended meta data)

protected

Definition at line 463 of file class.ilObjCategoryGUI.php.

References ilObjectGUI\checkPermission(), editInfoObject(), ilAdvancedMDRecordGUI\loadFromPost(), ilAdvancedMDRecordGUI\MODE_EDITOR, and ilUtil\sendSuccess().

{
$this->checkPermission("write");
include_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
'cat',$this->object->getId());
$record_gui->loadFromPost();
$record_gui->saveValues();
ilUtil::sendSuccess($this->lng->txt("settings_saved"));
$this->editInfoObject();
return true;
}

+ Here is the call graph for this function:

ilObjCategoryGUI::updateObject ( )

updates object entry in object_data

public

Reimplemented from ilObjectGUI.

Definition at line 646 of file class.ilObjCategoryGUI.php.

References $ilUser, $lang, ilChangeEvent\_catchupWriteEvents(), ilChangeEvent\_recordWriteEvent(), ilContainerGUI\afterUpdate(), ilObjectGUI\checkPermissionBool(), ilObjectServiceSettingsGUI\INFO_TAB_VISIBILITY, initEditForm(), ilObjectServiceSettingsGUI\NEWS_VISIBILITY, setEditTabs(), ilContainerSortingSettings\setSortMode(), and ilObjectServiceSettingsGUI\updateServiceSettingsForm().

{
if (!$this->checkPermissionBool("write"))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_write"),$this->ilias->error_obj->MESSAGE);
}
else
{
$form = $this->initEditForm();
if($form->checkInput())
{
$title = $form->getInput("title");
$desc = $form->getInput("desc");
$lang = $this->object->getTranslations();
$lang = $lang["Fobject"][0]["lang"];
$this->object->deleteTranslation($lang);
$this->object->addTranslation($title, $desc, $lang, true);
$this->object->setTitle($title);
$this->object->setDescription($desc);
$this->object->update();
include_once('Services/Container/classes/class.ilContainerSortingSettings.php');
$settings = new ilContainerSortingSettings($this->object->getId());
$settings->setSortMode($form->getInput("sorting"));
$settings->update();
// save custom icons
/* if ($this->ilias->getSetting("custom_icons"))
{
if($form->getItemByPostVar("cont_big_icon")->getDeletionFlag())
{
$this->object->removeBigIcon();
}
if($form->getItemByPostVar("cont_small_icon")->getDeletionFlag())
{
$this->object->removeSmallIcon();
}
if($form->getItemByPostVar("cont_tiny_icon")->getDeletionFlag())
{
$this->object->removeTinyIcon();
}
$this->object->saveIcons($_FILES["cont_big_icon"]['tmp_name'],
$_FILES["cont_small_icon"]['tmp_name'],
$_FILES["cont_tiny_icon"]['tmp_name']);
}*/
// BEGIN ChangeEvent: Record update
global $ilUser;
require_once('Services/Tracking/classes/class.ilChangeEvent.php');
ilChangeEvent::_recordWriteEvent($this->object->getId(), $ilUser->getId(), 'update');
ilChangeEvent::_catchupWriteEvents($this->object->getId(), $ilUser->getId());
// END ChangeEvent: Record update
// services
include_once './Services/Object/classes/class.ilObjectServiceSettingsGUI.php';
$this->object->getId(),
$form,
array(
)
);
// Update ecs export settings
include_once 'Modules/Category/classes/class.ilECSCategorySettings.php';
$ecs = new ilECSCategorySettings($this->object);
if($ecs->handleSettingsUpdate())
{
return $this->afterUpdate();
}
}
// display form to correct errors
$this->setEditTabs();
$form->setValuesByPost();
$this->tpl->setContent($form->getHTML());
}
}

+ Here is the call graph for this function:

Field Documentation

ilObjCategoryGUI::$ctrl

Definition at line 22 of file class.ilObjCategoryGUI.php.


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