ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

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 }
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.
$ref_id
Definition: ltiauth.php:66

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

+ 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.

41 : string
42 {
43 return $this->internal->gui()->objectSettingsClass($lower);
44 }

◆ 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 }
Style settings of a repository object.

◆ 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,
53 );
54 }

◆ redirectToObjectSettings()

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

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

68 : void
69 {
70 $this->internal->gui()->ctrl()->redirectByClass(
71 $this->objectSettingsClass(),
72 ""
73 );
74 }
objectSettingsClass(bool $lower=true)

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: