ILIAS  release_7 Revision v7.30-3-g800a261c036
ilSystemStyleDocumentationGUI Class Reference
+ Collaboration diagram for ilSystemStyleDocumentationGUI:

Public Member Functions

 __construct ($read_only=false)
 ilSystemStyleDocumentationGUI constructor. More...
 
 executeCommand ()
 Execute command. More...
 
 show ()
 
 isReadOnly ()
 
 setIsReadOnly ($is_read_only)
 

Data Fields

const ROOT_FACTORY_PATH = "./Services/Style/System/data/abstractDataFactory.php"
 
const DATA_DIRECTORY = "./Services/Style/System/data"
 
const DATA_FILE = "data.php"
 
const SHOW_TREE = "system_styles_show_tree"
 

Static Public Attributes

static $DATA_PATH
 

Protected Member Functions

 setGlobalScreenContext ()
 
 addGotoLink ()
 

Protected Attributes

 $tpl
 
 $ctrl
 
 $lng
 
 $is_read_only = false
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilSystemStyleDocumentationGUI::__construct (   $read_only = false)

ilSystemStyleDocumentationGUI constructor.

Parameters
bool | false$read_only

Definition at line 43 of file class.ilSystemStyleDocumentationGUI.php.

44 {
45 global $DIC;
46
47 $this->ctrl = $DIC->ctrl();
48 $this->lng = $DIC->language();
49 $this->tpl = $DIC["tpl"];
50 $this->global_screen = $DIC->globalScreen();
51
52 $this->setIsReadOnly($read_only);
53
54 self::$DATA_PATH = self::DATA_DIRECTORY . "/" . self::DATA_FILE;
55 }
global $DIC
Definition: goto.php:24

References $DIC, DATA_FILE, and setIsReadOnly().

+ Here is the call graph for this function:

Member Function Documentation

◆ addGotoLink()

ilSystemStyleDocumentationGUI::addGotoLink ( )
protected

Definition at line 131 of file class.ilSystemStyleDocumentationGUI.php.

132 {
133 $this->tpl->setPermanentLink("stys", $_GET["ref_id"], "_" . $_GET["node_id"] . "_"
134 . $_GET["skin_id"] . "_" . $_GET["style_id"]);
135 }
$_GET["client_id"]

References $_GET.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ executeCommand()

ilSystemStyleDocumentationGUI::executeCommand ( )

Execute command.

Definition at line 60 of file class.ilSystemStyleDocumentationGUI.php.

61 {
62 if ($this->is_read_only) {
63 $this->resetForReadOnly();
64 }
65 $this->addGotoLink();
67 $this->show();
68 }

References addGotoLink(), setGlobalScreenContext(), and show().

+ Here is the call graph for this function:

◆ isReadOnly()

ilSystemStyleDocumentationGUI::isReadOnly ( )
Returns
bool

Definition at line 140 of file class.ilSystemStyleDocumentationGUI.php.

References $is_read_only.

◆ setGlobalScreenContext()

ilSystemStyleDocumentationGUI::setGlobalScreenContext ( )
protected

Definition at line 70 of file class.ilSystemStyleDocumentationGUI.php.

71 {
72 $context = $this->global_screen->tool()->context()->current();
73 $context->addAdditionalData(self::SHOW_TREE, true);
74 }
$context
Definition: webdav.php:26

References $context.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ setIsReadOnly()

ilSystemStyleDocumentationGUI::setIsReadOnly (   $is_read_only)
Parameters
bool$is_read_only

Definition at line 148 of file class.ilSystemStyleDocumentationGUI.php.

149 {
150 $this->is_read_only = $is_read_only;
151 }

References $is_read_only.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ show()

ilSystemStyleDocumentationGUI::show ( )

Definition at line 76 of file class.ilSystemStyleDocumentationGUI.php.

77 {
78 $content = "";
79
80
81 $entry_gui = new ilKSDocumentationEntryGUI(
82 $this
83 );
84
85 $content .= $entry_gui->renderEntry();
86 $this->tpl->setContent($content);
87 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

Field Documentation

◆ $ctrl

ilCtrl ilSystemStyleDocumentationGUI::$ctrl
protected

Definition at line 21 of file class.ilSystemStyleDocumentationGUI.php.

◆ $DATA_PATH

ilSystemStyleDocumentationGUI::$DATA_PATH
static

◆ $is_read_only

ilSystemStyleDocumentationGUI::$is_read_only = false
protected

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

Referenced by isReadOnly(), and setIsReadOnly().

◆ $lng

ilSystemStyleDocumentationGUI::$lng
protected

Definition at line 26 of file class.ilSystemStyleDocumentationGUI.php.

◆ $tpl

ilSystemStyleDocumentationGUI::$tpl
protected

Definition at line 17 of file class.ilSystemStyleDocumentationGUI.php.

◆ DATA_DIRECTORY

const ilSystemStyleDocumentationGUI::DATA_DIRECTORY = "./Services/Style/System/data"

◆ DATA_FILE

const ilSystemStyleDocumentationGUI::DATA_FILE = "data.php"

◆ ROOT_FACTORY_PATH

const ilSystemStyleDocumentationGUI::ROOT_FACTORY_PATH = "./Services/Style/System/data/abstractDataFactory.php"

◆ SHOW_TREE

const ilSystemStyleDocumentationGUI::SHOW_TREE = "system_styles_show_tree"

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