Ok,
As the 1st one will have
an empty array, while the 2nd one will be
null,
<?php
public function invokeEvent($eventName, array $params= array ()) {
if (!$eventName)
return false;
if ($this->eventMap === null)
$this->_initEventMap($this->context->get('key'));
if (!isset ($this->eventMap[$eventName])) {
//$this->log(modX::LOG_LEVEL_DEBUG,'System event '.$eventName.' was executed but does not exist.');
return false;
}
I assume, the empty eventMap array will go through all above condition?
I’m thinking about its purpose, which I thought it will reset the whole event array.
Or am I completely misunderstanding this function?