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

An endpoint is a PHP file that produces output via HTTP. More...

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

Public Member Functions

 __construct (\ILIAS\Component\Component $component, string $source, string $target=".")
 
- 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...
 

Additional Inherited Members

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

Detailed Description

An endpoint is a PHP file that produces output via HTTP.

These will be located on the toplevel of the public folder. Fall back to ComponentResource if something else is needed.

Definition at line 28 of file Endpoint.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Component\Resource\Endpoint::__construct ( \ILIAS\Component\Component  $component,
string  $source,
string  $target = "." 
)
Parameters
$componentthis belongs to
$sourcepath relative to the components resources directory
$targetpath relative to the ILIAS public directory, filename of resource will be appended. Use one dot for toplevel. Defaults to ".".

Definition at line 35 of file Endpoint.php.

References ILIAS\GlobalScreen\Provider\__construct().

39  {
40  parent::__construct($component, $source, $target);
41  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

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