Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!
Bislang:
$parameters = [
'value' => \random_int(1, 1024),
];
EventHandler::getInstance()->fireAction($this, 'valueAvailable', $parameters);
<?php
namespace wcf\system\event\listener;
use wcf\form\ValueForm;
final class ValueDumpListener implements IParameterizedEventListener
{
/**
* @inheritDoc
* @param ValueForm $eventObj
*/
public function execute($eventObj, $className, $eventName, array &$parameters)
{
var_dump($parameters['value']);
}
}
Display More
Absofort
Don’t have an account yet? Register yourself now and be a part of our community!