ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 ()
 Get javascript files. More...
 
 getCssFiles ()
 Get css files. More...
 
 getOnloadCode ()
 Get onload code. More...
 

Protected Attributes

 $js_files = []
 
 $css_files = []
 
 $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 12 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.

Parameters
string$output_mode
\ilPageObject | null$pg

Definition at line 36 of file ResourcesCollector.php.

References ILIAS\COPage\ResourcesCollector\$css_files, ILIAS\COPage\ResourcesCollector\$js_files, ILIAS\COPage\ResourcesCollector\$onload_code, iljQueryUtil\getLocaljQueryPath(), iljQueryUtil\getLocaljQueryUIPath(), ilCOPagePCDef\getPCDefinitions(), and ilPageObjectGUI\OFFLINE.

37  {
38  // workaround (note that pcquestion currently checks for page config, if self assessment is enabled
39  if (is_null($pg)) {
40  $pg = new \ilLMPage();
41  }
42  $this->output_mode = $output_mode;
43  $this->init($pg);
44  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getCssFiles()

ILIAS\COPage\ResourcesCollector::getCssFiles ( )

Get css files.

Returns
array

Definition at line 106 of file ResourcesCollector.php.

References ILIAS\COPage\ResourcesCollector\$css_files.

◆ getJavascriptFiles()

ILIAS\COPage\ResourcesCollector::getJavascriptFiles ( )

Get javascript files.

Returns
array

Definition at line 97 of file ResourcesCollector.php.

References ILIAS\COPage\ResourcesCollector\$js_files.

◆ getOnloadCode()

ILIAS\COPage\ResourcesCollector::getOnloadCode ( )

Get onload code.

Returns
array

Definition at line 115 of file ResourcesCollector.php.

References ILIAS\COPage\ResourcesCollector\$onload_code.

Field Documentation

◆ $css_files

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

◆ $js_files

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

◆ $onload_code

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

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