Recommend this page to a friend! |
![]() |
Info | Documentation | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 60 | All time: 10,508 This week: 455![]() |
Version | License | PHP version | Categories | |||
event-module 1.0.0 | MIT/X Consortium ... | 5 | PHP 5, Language |
Register EventHandlers in PHP to be lazy loaded.
Set the directory to save the events in.
$my_directory = __DIR__.\DIRECTORY_SEPARATOR.'compiled-events';
\Webfan\App\EventModule::setBaseDir($my_directory);
### Register Events Register the events by your configuration/build script/process.
\Webfan\App\EventModule::register('test', 'testing', static function($eventName, $emitter, \webfan\hps\Event $Event){
print_r($Event->getArgument("testParam"));
});
### Call Events Dispatch the events later in a different script/process.
$event = new \webfan\hps\Event('testing');
$event->setArgument('testParam', 'testValue');
\Webfan\App\EventModule::action('test')->emit('testing', $event);
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Lic. | License text | ||
![]() ![]() |
Doc. | Documentation |
![]() |
/ | src | / | Webfan | / | App |
File | Role | Description |
---|---|---|
![]() ![]() |
Class | Class source |
![]() ![]() |
Class | Class source |
![]() |
/ | src | / | Webfan | / | Homepagesystem | / | EventFlow |
File | Role | Description |
---|---|---|
![]() ![]() |
Class | Class source |
![]() ![]() |
Class | Class source |
![]() ![]() |
Class | Class source |
![]() |
/ | src | / | webfan | / | hps |
File | Role | Description |
---|---|---|
![]() ![]() |
Class | Class source |
![]() ![]() |
Class | Class source |
![]() ![]() |
Class | Class source |
![]() ![]() |
Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.