ILIAS  release_8 Revision v8.24
ILIAS\COPage\ResourcesCollector Class Reference

Collects all js/css/onload resources necessary for page rendering. More...

+ Collaboration diagram for ILIAS\COPage\ResourcesCollector:

Public Member Functions

 __construct (string $output_mode, \ilPageObject $pg=null)
 Constructor, currently has a dependency to ilPageObject due to historic reasons, this should be removed in the future. More...
 
 getJavascriptFiles ()
 
 getCssFiles ()
 
 getOnloadCode ()
 

Protected Attributes

string $output_mode = ""
 
array $js_files = []
 
array $css_files = []
 
array $onload_code = []
 

Detailed Description

Collects all js/css/onload resources necessary for page rendering.

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

Definition at line 26 of file ResourcesCollector.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\COPage\ResourcesCollector::__construct ( string  $output_mode,
\ilPageObject  $pg = null 
)

Constructor, currently has a dependency to ilPageObject due to historic reasons, this should be removed in the future.

Definition at line 38 of file ResourcesCollector.php.

41 {
42 // workaround (note that pcquestion currently checks for page config, if self assessment is enabled
43 if (is_null($pg)) {
44 $pg = new \ilLMPage();
45 $pg->setXMLContent("<PageObject></PageObject>");
46 }
47 $this->output_mode = $output_mode;
48 $this->init($pg);
49 }

References ILIAS\COPage\ResourcesCollector\$output_mode.

Member Function Documentation

◆ getCssFiles()

ILIAS\COPage\ResourcesCollector::getCssFiles ( )

Definition at line 99 of file ResourcesCollector.php.

99 : array
100 {
101 return $this->css_files;
102 }

References ILIAS\COPage\ResourcesCollector\$css_files.

◆ getJavascriptFiles()

ILIAS\COPage\ResourcesCollector::getJavascriptFiles ( )

Definition at line 94 of file ResourcesCollector.php.

94 : array
95 {
96 return $this->js_files;
97 }

References ILIAS\COPage\ResourcesCollector\$js_files.

◆ getOnloadCode()

ILIAS\COPage\ResourcesCollector::getOnloadCode ( )

Definition at line 104 of file ResourcesCollector.php.

104 : array
105 {
106 return $this->onload_code;
107 }

References ILIAS\COPage\ResourcesCollector\$onload_code.

Field Documentation

◆ $css_files

array ILIAS\COPage\ResourcesCollector::$css_files = []
protected

Definition at line 30 of file ResourcesCollector.php.

Referenced by ILIAS\COPage\ResourcesCollector\getCssFiles().

◆ $js_files

array ILIAS\COPage\ResourcesCollector::$js_files = []
protected

◆ $onload_code

array ILIAS\COPage\ResourcesCollector::$onload_code = []
protected

◆ $output_mode

string ILIAS\COPage\ResourcesCollector::$output_mode = ""
protected

Definition at line 28 of file ResourcesCollector.php.

Referenced by ILIAS\COPage\ResourcesCollector\__construct().


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