ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

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

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  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getCssFiles()

ILIAS\COPage\ResourcesCollector::getCssFiles ( )

Definition at line 99 of file ResourcesCollector.php.

References ILIAS\COPage\ResourcesCollector\$css_files.

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

◆ getJavascriptFiles()

ILIAS\COPage\ResourcesCollector::getJavascriptFiles ( )

Definition at line 94 of file ResourcesCollector.php.

References ILIAS\COPage\ResourcesCollector\$js_files.

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

◆ getOnloadCode()

ILIAS\COPage\ResourcesCollector::getOnloadCode ( )

Definition at line 104 of file ResourcesCollector.php.

References ILIAS\COPage\ResourcesCollector\$onload_code.

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

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: