src/Common/Model/AppNotification.php
protected function setDefinitions()
    {
        //  Define where we should look
        $aDefinitionLocations   = [];
        $aDefinitionLocations[] = NAILS_COMMON_PATH . 'config/app_notifications.php';

        foreach (Components::modules() as $oModule) {
            $aDefinitionLocations[] = $oModule->path . $oModule->moduleName . '/config/app_notifications.php';
        }

        $aDefinitionLocations[] = NAILS_APP_PATH . 'application/config/app_notifications.php';

        //  Find definitions
        foreach ($aDefinitionLocations as $sPath) {
            $this->loadDefinitions($sPath);
        }

        //  Put into a vague order
        ksort($this->notifications);
    }
protected function setDefinitions()
    {
        //  Define where we should look
        $aDefinitionLocations   = [];
        $aDefinitionLocations[] = NAILS_COMMON_PATH . 'config/app_notifications.php';

        foreach (Components::modules() as $oModule) {
            $aDefinitionLocations[] = $oModule->path . $oModule->moduleName . '/config/app_notifications.php';
        }

        $aDefinitionLocations[] = NAILS_APP_PATH . 'application/config/app_notifications.php';

        //  Find definitions
        foreach ($aDefinitionLocations as $sPath) {
            $this->loadDefinitions($sPath);
        }

        //  Put into a vague order
        ksort($this->notifications);
    }
protected function setDefinitions ( ) { //  Define where we should look $ aDefinitionLocations = [ ] ; $ aDefinitionLocations [ ] = NAILS_COMMON_PATH . 'config/app_notifications.php' ; foreach ( Components :: modules ( ) as $ oModule ) { $ aDefinitionLocations [ ] = $ oModule -> path . $ oModule -> moduleName . '/config/app_notifications.php' ; } $ aDefinitionLocations [ ] = NAILS_APP_PATH . 'application/config/app_notifications.php' ; //  Find definitions foreach ( $ aDefinitionLocations as $ sPath ) { $ this -> loadDefinitions ( $ sPath ) ; } //  Put into a vague order ksort ( $ this -> notifications ) ; }
Defines the notifications
Defines the notifications