ILIAS  trunk Revision v5.2.0beta1-34115-g3a2438be29
ILIAS\UI\Implementation\Component\SignalGenerator Class Reference
+ Inheritance diagram for ILIAS\UI\Implementation\Component\SignalGenerator:
+ Collaboration diagram for ILIAS\UI\Implementation\Component\SignalGenerator:

Public Member Functions

 create (string $class='')
 Create a signal, each created signal MUST have a unique ID.
Parameters
string$classFully qualified class name (including namespace) of desired signal subtype
More...
 

Data Fields

const PREFIX = 'il_signal_'
 

Protected Member Functions

 createId ()
 

Detailed Description

Definition at line 29 of file SignalGenerator.php.

Member Function Documentation

◆ create()

ILIAS\UI\Implementation\Component\SignalGenerator::create ( string  $class = '')

Create a signal, each created signal MUST have a unique ID.

Parameters
string$classFully qualified class name (including namespace) of desired signal subtype

Implements ILIAS\UI\Implementation\Component\SignalGeneratorInterface.

Definition at line 36 of file SignalGenerator.php.

References $id, and ILIAS\UI\Implementation\Component\SignalGenerator\createId().

36  : Signal
37  {
38  $id = $this->createId();
39  return ($class) ? new $class($id) : new Signal($id);
40  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:

◆ createId()

ILIAS\UI\Implementation\Component\SignalGenerator::createId ( )
protected

Definition at line 42 of file SignalGenerator.php.

Referenced by ILIAS\UI\Implementation\Component\SignalGenerator\create().

42  : string
43  {
44  return str_replace(".", "_", uniqid(self::PREFIX, true));
45  }
+ Here is the caller graph for this function:

Field Documentation

◆ PREFIX

const ILIAS\UI\Implementation\Component\SignalGenerator::PREFIX = 'il_signal_'

Definition at line 31 of file SignalGenerator.php.


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