public function checkModuleEvents()
    {
        $aDatabaseEvents = $this->getModuleEntries(ModuleList::MODULE_KEY_EVENTS);

        $aDatabaseEvents = is_array($aDatabaseEvents) ? $aDatabaseEvents : [];
        $aDatabaseEvents = array_map(function ($value){return print_r($value,true);}, $aDatabaseEvents);
        $aResult = $this->toResult($aDatabaseEvents);
        foreach ($aResult as $eventName => &$data){
            $data['key_state'] = ($eventName == 'onActivate' || $eventName == 'onDeactivate') ? self::OK : self::SHOP_FILE_NOT_FOUND;
        }
        return $aResult;
    }
public function checkModuleEvents()
    {
        $aDatabaseEvents = $this->getModuleEntries(ModuleList::MODULE_KEY_EVENTS);

        $aDatabaseEvents = is_array($aDatabaseEvents) ? $aDatabaseEvents : [];
        $aDatabaseEvents = array_map(function ($value){return print_r($value,true);}, $aDatabaseEvents);
        $aResult = $this->toResult($aDatabaseEvents);
        foreach ($aResult as $eventName => &$data){
            $data['key_state'] = ($eventName == 'onActivate' || $eventName == 'onDeactivate') ? self::OK : self::SHOP_FILE_NOT_FOUND;
        }
        return $aResult;
    }
public function checkModuleEvents ( ) { $ aDatabaseEvents = $ this -> getModuleEntries ( ModuleList :: MODULE_KEY_EVENTS ) ; $ aDatabaseEvents = is_array ( $ aDatabaseEvents ) ? $ aDatabaseEvents : [ ] ; $ aDatabaseEvents = array_map ( function ( $ value ) { return print_r ( $ value , true ) ; } , $ aDatabaseEvents ) ; $ aResult = $ this -> toResult ( $ aDatabaseEvents ) ; foreach ( $ aResult as $ eventName => & $ data ) { $ data [ 'key_state' ] = ( $ eventName == 'onActivate' || $ eventName == 'onDeactivate' ) ? self :: OK : self :: SHOP_FILE_NOT_FOUND ; } return $ aResult ; }
Analyze events in metadata ans settings.

@return array
Analyze events in metadata ans settings .