ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Component\Resource\ComponentJS Class Reference

This is a js file provided by some component. More...

+ Inheritance diagram for ILIAS\Component\Resource\ComponentJS:
+ Collaboration diagram for ILIAS\Component\Resource\ComponentJS:

Public Member Functions

 __construct (\ILIAS\Component\Component $component, string $source,)
 
- Public Member Functions inherited from ILIAS\Component\Resource\OfComponent
 __construct (protected \ILIAS\Component\Component $component, protected string $source, protected string $target,)
 
 getSource ()
 The path of asset relative to the ILIAS base directory. More...
 
 getTarget ()
 The new path of relative to the ILIAS public directory. More...
 

Data Fields

const TARGET = "assets/js"
 
- Data Fields inherited from ILIAS\Component\Resource\OfComponent
const REGEXP_SOURCE = '%^(((\w|.)+(/(\w|.)+)*(\.\w{2,4})?)|(\.htaccess))$%'
 
const REGEXP_TARGET = '%^(((\w|.)+(/(\w|.)+)*)|[.])$%'
 

Detailed Description

This is a js file provided by some component.

Definition at line 26 of file ComponentJS.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Component\Resource\ComponentJS::__construct ( \ILIAS\Component\Component  $component,
string  $source 
)
Parameters
$componentthis belongs to
$sourcepath relative to the components resource directory

Definition at line 34 of file ComponentJS.php.

References ILIAS\GlobalScreen\Provider\__construct().

37  {
38  parent::__construct($component, $source, self::TARGET);
39  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Field Documentation

◆ TARGET

const ILIAS\Component\Resource\ComponentJS::TARGET = "assets/js"

Definition at line 28 of file ComponentJS.php.

Referenced by ILIAS\Component\Resource\NodeModule\getTarget().


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