ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSystemStyleBaseFS Class Reference
+ Inheritance diagram for ilSystemStyleBaseFS:
+ Collaboration diagram for ilSystemStyleBaseFS:

Protected Member Functions

 setUp ()
 
 getAllContentOfFolder (string $directory)
 

Protected Attributes

ilSystemStyleConfigMock $system_style_config
 
ilSkinStyleContainer $container
 
ilSkinStyle $style
 
ILIAS DI Container $save_dic = null
 
Language $lng
 
ilSystemStyleMessageStack $message_stack
 

Detailed Description

Definition at line 27 of file ilSystemStyleBaseFS.php.

Member Function Documentation

◆ getAllContentOfFolder()

ilSystemStyleBaseFS::getAllContentOfFolder ( string  $directory)
protected

Definition at line 53 of file ilSystemStyleBaseFS.php.

53 : string
54 {
55 $files = scandir($directory);
56 $content = "";
57
58 foreach ($files as $file) {
59 if (is_file($directory . '/' . $file)) {
60 $content .= file_get_contents($directory . '/' . $file);
61 }
62 }
63
64 return $content;
65 }

◆ setUp()

ilSystemStyleBaseFS::setUp ( )
protected

@noRector

Reimplemented in ilSystemStyleOverviewGUITest, ilSkinFactoryTest, and ilSkinTest.

Definition at line 36 of file ilSystemStyleBaseFS.php.

36 : void
37 {
38 global $DIC;
39 $DIC['tpl'] = $this->getMockBuilder(ilGlobalTemplateInterface::class)->getMock();
40 $this->system_style_config = new ilSystemStyleConfigMock();
41 $this->message_stack = new ilSystemStyleMessageStack($DIC['tpl']);
42
44 $this->lng = new ilLanguageMock();
45
46
47
48 $factory = new ilSkinFactory($this->lng, $this->system_style_config);
49 $this->container = $factory->skinStyleContainerFromId('skin1', $this->message_stack);
50 $this->style = $this->container->getSkin()->getStyle('style1');
51 }
Factory to create Skin classes holds an manages the basic data of a skin as provide by the template o...
ilSystemStyleConfig wraps all 'constants' to ensure the testability of all classes using those 'const...
Used to stack messages to be shown to the user.
global $DIC
Definition: shib_login.php:26

References $DIC, and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Field Documentation

◆ $container

ilSkinStyleContainer ilSystemStyleBaseFS::$container
protected

◆ $lng

Language ilSystemStyleBaseFS::$lng
protected

Definition at line 33 of file ilSystemStyleBaseFS.php.

Referenced by ilSystemStyleOverviewGUITest\setUp().

◆ $message_stack

ilSystemStyleMessageStack ilSystemStyleBaseFS::$message_stack
protected

Definition at line 34 of file ilSystemStyleBaseFS.php.

◆ $save_dic

ILIAS DI Container ilSystemStyleBaseFS::$save_dic = null
protected

Definition at line 32 of file ilSystemStyleBaseFS.php.

◆ $style

ilSkinStyle ilSystemStyleBaseFS::$style
protected

Definition at line 31 of file ilSystemStyleBaseFS.php.

◆ $system_style_config

ilSystemStyleConfigMock ilSystemStyleBaseFS::$system_style_config
protected

Definition at line 29 of file ilSystemStyleBaseFS.php.


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