Return all system indicators.

@return \core_analytics\local\indicator\base[]
343824
public static function get_all_indicators() {
        if (self::$allindicators !== null) {
            return self::$allindicators;
        }

        $classes = self::get_analytics_classes('indicator');

        self::$allindicators = [];
        foreach ($classes as $fullclassname => $classpath) {
            $instance = self::get_indicator($fullclassname);
            if ($instance) {
                self::$allindicators[$instance->get_id()] = $instance;
            }
        }

        return self::$allindicators;
    }
483641
public function getGlobals()
    {
        return [
            'bolt_name'    => Bolt\Version::name(),
            'bolt_version' => Bolt\Version::VERSION,
            'frontend'     => null,
            'backend'      => null,
            'async'        => null,
            'paths'        => $this->paths,
            'theme'        => null,
            'user'         => null,
            'users'        => null,
            'config'       => $this->config,
        ];
    }
199414
public static function getStatusesArray() : array
    {
        return [
            self::STATUS_BLOCKED => Yii::t('setrun/user', 'Blocked'),
            self::STATUS_ACTIVE  => Yii::t('setrun/user', 'Active'),
            self::STATUS_WAIT    => Yii::t('setrun/user', 'Wait')
        ];
    }
475532
public function getServices()
    {
        # Get all services
        $services = [];
        foreach ($this->wmi->ExecQuery('SELECT Name, DisplayName, ServiceType, StartMode, StartName, State, Status '.
                                       'FROM Win32_Service') as $service)
        {
            $services[] = [
                'name' => $service->Name,
                'displayname' => $service->DisplayName,
                'servicetype' => $service->ServiceType,
                'startmode' => $service->StartMode,
                'startname' => $service->StartName,
                'state' => $service->State,
                'status' => $service->Status
            ];
        }

        return $services;
    }
1198647
public static function get_all_targets() : array {
        if (self::$alltargets !== null) {
            return self::$alltargets;
        }

        $classes = self::get_analytics_classes('target');

        self::$alltargets = [];
        foreach ($classes as $fullclassname => $classpath) {
            $instance = self::get_target($fullclassname);
            if ($instance) {
                self::$alltargets[$instance->get_id()] = $instance;
            }
        }

        return self::$alltargets;
    }
635487
public function getStatisticsServices():array
    {

        $services = $this->getAllServices();
        $counter = 0;
        $senable = 0;

        foreach ($services as $val) {
            if ($val->status == "enabled") {
                $senable++;
            }

            $counter++;
        }

        return (array("number" => $counter, "enabled" => $senable));
    }
818934
protected function getHelpers() 
	{
		$cdnRoot	= eden('block')->getAssetRoot();
		$language 	= eden('block')->getLanguage();
		
		return array(
			'cdn' => function() use ($cdnRoot) {
				echo $cdnRoot;
			},
			
			'_' => function($key) use ($language) {
				if($language instanceof Eden\Language\Base) {
					echo $language[$key];
				} else {
					echo $key;
				}
			});
	}
993448
public function getDirectoryParts(): array
    {
        return $this->myAboveBaseLevel === 0 ? $this->myDirectoryParts : array_merge(array_fill(0, $this->myAboveBaseLevel, '..'), $this->myDirectoryParts);
    }
759750
protected function getPidList(): array
    {
        $rootPIDs = explode(',', $this->settings['pages']);
        $pidList = $rootPIDs;

        // iterate through root-page ids and merge to array
        foreach ($rootPIDs as $pid) {
            $result = $this->queryGenerator->getTreeList($pid, $this->settings['recursive'], 0, 1);
            if ($result) {
                $subtreePids = explode(',', $result);
                $pidList = array_merge($pidList, $subtreePids);
            }
        }
        return $pidList;
    }
1124956
protected function getPropStats(): array
    {
        $result = [];
        $failed = false;
        
        foreach ($this->proppatch->getOperations() as $operation) {
            $tmp = $operation->getResult();
            
            if (is_integer($tmp)) {
                if (empty($result[$tmp])) {
                    $result[$tmp] = [];
                }
                
                $result[$tmp][] = $operation;
            } elseif ($tmp instanceof HttpException) {
                $tmp = $tmp->getCode();
                
                if (empty($result[$tmp])) {
                    $result[$tmp] = [];
                }
                
                $result[$tmp][] = $operation;
            } else {
                $tmp = WebDav::CODE_CONFLICT;
                
                if (empty($result[$tmp])) {
                    $result[$tmp];
                }
                
                $result[$tmp][] = $operation;
            }
            
            if ($tmp != WebDav::CODE_OK) {
                $failed = true;
            }
        }
        
        if ($failed && !empty($result[WebDav::CODE_OK])) {
            if (empty($result[WebDav::CODE_FAILED_DEPENDENCY])) {
                $result[WebDav::CODE_FAILED_DEPENDENCY] = [];
            }
            
            foreach ($result[WebDav::CODE_OK] as $operation) {
                $result[WebDav::CODE_FAILED_DEPENDENCY][] = $operation;
            }
            
            unset($result[WebDav::CODE_OK]);
        }
        
        ksort($result, SORT_NUMERIC);
        
        return $result;
    }
1270168
public function getAll(): array
    {
        return \array_merge(
            $this->interfaces,
            $this->traits,
            $this->abstractClasses,
            $this->classes
        );
    }
1172404
public function getAll() {
        $system = array();

        $system['contact'] = $this->contact();
        $system['description'] = $this->description();
        $system['location'] = $this->location();
        $system['name'] = $this->name();
        //$system['services'] = $this->services();
        $system['uptime'] = $this->uptime();

        return $system;
    }
1181360
protected function getSignalList(): array
    {
        if (null !== self::$list) {
            return self::$list;
        }

        $signals = [
            SIGHUP,
            SIGINT,
            SIGQUIT,
            SIGILL,
            SIGABRT,
            SIGTRAP,
            SIGBUS,
            SIGTERM,
            SIGSEGV,
            SIGFPE,
            SIGALRM,
            SIGVTALRM,
            SIGPROF,
            SIGIO,
            SIGCONT,
            SIGURG,
            SIGPIPE,
            SIGXCPU,
            SIGXFSZ,
            SIGTTIN,
            SIGTTOU,
            SIGUSR1,
            SIGUSR2,
        ];

        if (defined('SIGIOT')) {
            $signals[] = SIGIOT;
        }

        if (defined('SIGSTKFLT')) {
            $signals[] = SIGSTKFLT;
        }

        if (defined('SIGCLD')) {
            $signals[] = SIGCLD;
        }

        if (defined('SIGCHLD')) {
            $signals[] = SIGCHLD;
        }

        return self::$list = $signals;
    }
1359005
public function getAllCurrent()
    {
        $notifications = [];
        $container = $this->getContainer();

        foreach ($container as $namespace => $notification) {
            $notifications[$namespace] = $this->getCurrent($namespace);
        }

        return $notifications;
    }
918167
public static function get_all_prediction_processors() {

        $mlbackends = \core_component::get_plugin_list('mlbackend');

        $predictionprocessors = array();
        foreach ($mlbackends as $mlbackend => $unused) {
            $classfullpath = '\mlbackend_' . $mlbackend . '\processor';
            $predictionprocessors[$classfullpath] = self::get_predictions_processor($classfullpath, false);
        }
        return $predictionprocessors;
    }
31414
private static function indicator_classes($indicators) {

        // What we want to check and store are the indicator classes not the keys.
        $indicatorclasses = array();
        foreach ($indicators as $indicator) {
            if (!\core_analytics\manager::is_valid($indicator, '\core_analytics\local\indicator\base')) {
                if (!is_object($indicator) && !is_scalar($indicator)) {
                    $indicator = strval($indicator);
                } else if (is_object($indicator)) {
                    $indicator = '\\' . get_class($indicator);
                }
                throw new \moodle_exception('errorinvalidindicator', 'analytics', '', $indicator);
            }
            $indicatorclasses[] = $indicator->get_id();
        }

        return $indicatorclasses;
    }
265056
public static function getStatuses()
    {
        return [
            self::STATUS_ACTIVE => Yii::t('podium/view', 'Active'),
            self::STATUS_BANNED => Yii::t('podium/view', 'Banned'),
            self::STATUS_REGISTERED => Yii::t('podium/view', 'Registered'),
        ];
    }