ILIAS  trunk Revision v11.0_alpha-1838-g59fc79e306b
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Style\Content\GUIService Class Reference

Facade for consumer gui interface. More...

+ Collaboration diagram for ILIAS\Style\Content\GUIService:

Public Member Functions

 __construct (InternalService $internal_service)
 
 objectSettingsClass (bool $lower=true)
 
 objectSettingsGUIForRefId (?int $selected_style_id, int $ref_id)
 
 objectSettingsGUIForObjId (?int $selected_style_id, int $obj_id)
 
 redirectToObjectSettings ()
 
 addCss (ilGlobalTemplateInterface $tpl, int $ref_id, int $obj_id=0)
 

Private Attributes

InternalService $internal
 

Detailed Description

Facade for consumer gui interface.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Style\Content\GUIService::__construct ( InternalService  $internal_service)

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

37  {
38  $this->internal = $internal_service;
39  }

Member Function Documentation

◆ addCss()

ILIAS\Style\Content\GUIService::addCss ( ilGlobalTemplateInterface  $tpl,
int  $ref_id,
int  $obj_id = 0 
)

Definition at line 77 of file class.GUIService.php.

References ILIAS\UICore\GlobalTemplate\addCss(), and ilObjStyleSheet\getContentStylePath().

77  : void
78  {
79  $eff_style_id = $this->internal->domain()->object($ref_id, $obj_id)->getEffectiveStyleId();
80  $tpl->addCss(ilObjStyleSheet::getContentStylePath($eff_style_id));
81  }
$ref_id
Definition: ltiauth.php:65
static getContentStylePath(int $a_style_id, bool $add_random=true, bool $add_token=true)
get content style path static (to avoid full reading)
addCss(string $a_css_file, string $media="screen")
Add a css file that should be included in the header.
+ Here is the call graph for this function:

◆ objectSettingsClass()

ILIAS\Style\Content\GUIService::objectSettingsClass ( bool  $lower = true)

Definition at line 41 of file class.GUIService.php.

Referenced by ILIAS\Style\Content\GUIService\redirectToObjectSettings().

41  : string
42  {
43  return $this->internal->gui()->objectSettingsClass($lower);
44  }
+ Here is the caller graph for this function:

◆ objectSettingsGUIForObjId()

ILIAS\Style\Content\GUIService::objectSettingsGUIForObjId ( ?int  $selected_style_id,
int  $obj_id 
)

Definition at line 56 of file class.GUIService.php.

60  return $this->internal->gui()->objectSettingsGUI(
61  $selected_style_id,
62  0,
63  $obj_id
64  );
65  }

◆ objectSettingsGUIForRefId()

ILIAS\Style\Content\GUIService::objectSettingsGUIForRefId ( ?int  $selected_style_id,
int  $ref_id 
)

Definition at line 46 of file class.GUIService.php.

50  return $this->internal->gui()->objectSettingsGUI(
51  $selected_style_id,
52  $ref_id
53  );
54  }
$ref_id
Definition: ltiauth.php:65

◆ redirectToObjectSettings()

ILIAS\Style\Content\GUIService::redirectToObjectSettings ( )

Definition at line 68 of file class.GUIService.php.

References ILIAS\Style\Content\GUIService\objectSettingsClass().

68  : void
69  {
70  $this->internal->gui()->ctrl()->redirectByClass(
71  $this->objectSettingsClass(),
72  ""
73  );
74  }
objectSettingsClass(bool $lower=true)
+ Here is the call graph for this function:

Field Documentation

◆ $internal

InternalService ILIAS\Style\Content\GUIService::$internal
private

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


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