ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSkillTemplateGUI Class Reference

Skill template GUI class. More...

+ Inheritance diagram for ilSkillTemplateGUI:
+ Collaboration diagram for ilSkillTemplateGUI:

Public Member Functions

 __construct (Tree\SkillTreeNodeManager $node_manager, int $a_node_id=0)
 
 getType ()
 
 executeCommand ()
 
 setTabs ()
 
- Public Member Functions inherited from ilSkillTreeNodeGUI
 __construct (Tree\SkillTreeNodeManager $node_manager, int $a_node_id=0)
 
 isInUse ()
 
 setParentGUI (object $a_parentgui)
 
 getParentGUI ()
 
 readNodeObject (int $a_node_id)
 Get node object instance. More...
 
 saveAllTitles ()
 
 deleteNodes ()
 Delete nodes in the hierarchy. More...
 
 cutItems ()
 Copy items to clipboard, then cut them from the current tree. More...
 
 copyItems ()
 Copy items to clipboard. More...
 
 cancelDelete ()
 
 confirmedDelete ()
 confirmed delete More...
 
 setSkillNodeDescription ()
 
 create ()
 Create skill tree node. More...
 
 addStatusInput (ilPropertyFormGUI $a_form)
 
 editProperties ()
 
 getPropertyValues ()
 Get property values for edit form. More...
 
 save ()
 Save skill tree node. More...
 
 afterSave ()
 
 update ()
 Update skill tree node. More...
 
 afterUpdate ()
 
 initForm (string $a_mode="edit")
 
 cancelSave ()
 
 redirectToParent (bool $a_tmp_mode=false)
 Redirect to parent (identified by current node_id) More...
 
 saveOrder ()
 
 insertBasicSkillClip ()
 
 insertSkillCategoryClip ()
 
 insertTemplateReferenceClip ()
 
 insertSkillTemplateClip ()
 
 insertTemplateCategoryClip ()
 
 setTitleIcon ()
 
 addUsageTab (ilTabsGUI $a_tabs)
 
 showUsage ()
 
 addObjectsTab (ilTabsGUI $a_tabs)
 
 showObjects ()
 
 exportSelectedNodes ()
 

Protected Attributes

ilCtrl $ctrl
 
ilGlobalTemplateInterface $tpl
 
ilTabsGUI $tabs
 
ilLanguage $lng
 
- Protected Attributes inherited from ilSkillTreeNodeGUI
ilCtrl $ctrl
 
ilLanguage $lng
 
ilLocatorGUI $locator
 
ilGlobalTemplateInterface $tpl
 
ilObjUser $user
 
ilTree $tree
 
ilPropertyFormGUI $form
 
object $parentgui
 
int $tref_id = 0
 
Tree SkillTreeNodeManager $skill_tree_node_manager
 
SkillTreeAccess $tree_access_manager
 
ilSkillTreeRepository $tree_repo
 
int $skill_tree_id = 0
 
ilTabsGUI $tabs
 
SkillAdminGUIRequest $admin_gui_request
 
int $requested_ref_id = 0
 
int $requested_node_id = 0
 
string $requested_backcmd = ""
 
int $requested_tmpmode = 0
 
int $base_skill_id = 0
 
array $requested_node_ids = []
 
array $requested_node_order = []
 

Additional Inherited Members

- Data Fields inherited from ilSkillTreeNodeGUI
object $node_object = null
 
bool $in_use = false
 
bool $use_checked = false
 
ilAccessHandler $access
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilSkillTemplateGUI::__construct ( Tree\SkillTreeNodeManager  $node_manager,
int  $a_node_id = 0 
)

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

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().

36  {
37  global $DIC;
38 
39  $this->ctrl = $DIC->ctrl();
40  $this->tpl = $DIC["tpl"];
41  $this->tabs = $DIC->tabs();
42  $this->lng = $DIC->language();
43  $ilCtrl = $DIC->ctrl();
44 
45  $ilCtrl->saveParameter($this, "node_id");
46 
47  parent::__construct($node_manager, $a_node_id);
48  }
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilSkillTemplateGUI::executeCommand ( )

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

References $ctrl, $tabs, and $tpl.

55  : void
56  {
57  $ilCtrl = $this->ctrl;
58  $tpl = $this->tpl;
59  $ilTabs = $this->tabs;
60 
61  //$tpl->getStandardTemplate();
62 
63  $next_class = $ilCtrl->getNextClass($this);
64  $cmd = $ilCtrl->getCmd();
65 
66  switch ($next_class) {
67  default:
68  $ret = $this->$cmd();
69  break;
70  }
71  }
ilGlobalTemplateInterface $tpl

◆ getType()

ilSkillTemplateGUI::getType ( )

Definition at line 50 of file class.ilSkillTemplateGUI.php.

50  : string
51  {
52  return "stmp";
53  }

◆ setTabs()

ilSkillTemplateGUI::setTabs ( )

Definition at line 73 of file class.ilSkillTemplateGUI.php.

References $ctrl, $lng, $tabs, $tpl, ilUtil\getImagePath(), ilGlobalTemplateInterface\setTitle(), ilGlobalTemplateInterface\setTitleIcon(), and ilLanguage\txt().

73  : void
74  {
75  $ilTabs = $this->tabs;
76  $ilCtrl = $this->ctrl;
77  $tpl = $this->tpl;
78  $lng = $this->lng;
79 
80  $tpl->setTitleIcon(ilUtil::getImagePath("icon_skmg.svg"));
81  $tpl->setTitle(
82  $lng->txt("skmg_skill_template") . ": " . $this->node_object->getTitle()
83  );
84  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
ilGlobalTemplateInterface $tpl
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrl ilSkillTemplateGUI::$ctrl
protected

Definition at line 30 of file class.ilSkillTemplateGUI.php.

Referenced by executeCommand(), and setTabs().

◆ $lng

ilLanguage ilSkillTemplateGUI::$lng
protected

Definition at line 33 of file class.ilSkillTemplateGUI.php.

Referenced by setTabs().

◆ $tabs

ilTabsGUI ilSkillTemplateGUI::$tabs
protected

Definition at line 32 of file class.ilSkillTemplateGUI.php.

Referenced by executeCommand(), and setTabs().

◆ $tpl

ilGlobalTemplateInterface ilSkillTemplateGUI::$tpl
protected

Definition at line 31 of file class.ilSkillTemplateGUI.php.

Referenced by executeCommand(), and setTabs().


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