public static function run()
    {
        if (! session_id()) {
            session_start();
        }

        $complementType = self::getType('strtoupper');

        $path = App::$complementType();

        if ($paths = File::getFilesFromDir($path)) {
            foreach ($paths as $path) {
                if (! $path->isDot() && $path->isDir()) {
                    $_path = Url::addBackSlash($path->getPath());
                    $slug = $path->getBasename();
                    $file = $_path . $slug . '/' . $slug . '.json';
                    if (! File::exists($file)) {
                        continue;
                    }
                    self::load($file);
                }
            }
        }

        self::requestHandler(self::getType('strtolower', false));
    }
public static function run()
    {
        if (! session_id()) {
            session_start();
        }

        $complementType = self::getType('strtoupper');

        $path = App::$complementType();

        if ($paths = File::getFilesFromDir($path)) {
            foreach ($paths as $path) {
                if (! $path->isDot() && $path->isDir()) {
                    $_path = Url::addBackSlash($path->getPath());
                    $slug = $path->getBasename();
                    $file = $_path . $slug . '/' . $slug . '.json';
                    if (! File::exists($file)) {
                        continue;
                    }
                    self::load($file);
                }
            }
        }

        self::requestHandler(self::getType('strtolower', false));
    }
public static function run ( ) { if ( ! session_id ( ) ) { session_start ( ) ; } $ complementType = self :: getType ( 'strtoupper' ) ; $ path = App :: $ complementType ( ) ; if ( $ paths = File :: getFilesFromDir ( $ path ) ) { foreach ( $ paths as $ path ) { if ( ! $ path -> isDot ( ) && $ path -> isDir ( ) ) { $ _path = Url :: addBackSlash ( $ path -> getPath ( ) ) ; $ slug = $ path -> getBasename ( ) ; $ file = $ _path . $ slug . '/' . $ slug . '.json' ; if ( ! File :: exists ( $ file ) ) { continue ; } self :: load ( $ file ) ; } } } self :: requestHandler ( self :: getType ( 'strtolower' , false ) ) ; }
Load all complements found in the directory.

@uses \Eliasis\Complement\ComplementRequest::requestHandler()
@uses \Eliasis\Complement\ComplementHandler::getType()
Load all complements found in the directory .