src/DataFile.php
public static function init()
    {

        // Initialize format drivers
        foreach (glob(implode(DIRECTORY_SEPARATOR, array(__DIR__,'Format','*.php'))) as $filename) {

            $filename = explode(DIRECTORY_SEPARATOR, $filename);
            $filename = explode('.',array_pop($filename));
            array_pop($filename);
            $filename = implode('.', $filename);

            if($filename == 'FormatInterface') continue;

            $className = explode("\\",__CLASS__);
            array_pop($className);
            array_push($className, 'Format');
            array_push($className, $filename);
            $className = implode('\\', $className);

            self::registerFormat($className);
        }

        // Initialize storage drivers
        foreach (glob(implode(DIRECTORY_SEPARATOR, array(__DIR__,'Storage','*.php'))) as $filename) {

            $filename = explode(DIRECTORY_SEPARATOR, $filename);
            $filename = explode('.',array_pop($filename));
            array_pop($filename);
            $filename = implode('.', $filename);

            if($filename == 'StorageInterface') continue;

            $className = explode("\\",__CLASS__);
            array_pop($className);
            array_push($className, 'Storage');
            array_push($className, $filename);
            $className = implode('\\', $className);

            self::registerStorage($className);
        }
    }
public static function init()
    {

        // Initialize format drivers
        foreach (glob(implode(DIRECTORY_SEPARATOR, array(__DIR__,'Format','*.php'))) as $filename) {

            $filename = explode(DIRECTORY_SEPARATOR, $filename);
            $filename = explode('.',array_pop($filename));
            array_pop($filename);
            $filename = implode('.', $filename);

            if($filename == 'FormatInterface') continue;

            $className = explode("\\",__CLASS__);
            array_pop($className);
            array_push($className, 'Format');
            array_push($className, $filename);
            $className = implode('\\', $className);

            self::registerFormat($className);
        }

        // Initialize storage drivers
        foreach (glob(implode(DIRECTORY_SEPARATOR, array(__DIR__,'Storage','*.php'))) as $filename) {

            $filename = explode(DIRECTORY_SEPARATOR, $filename);
            $filename = explode('.',array_pop($filename));
            array_pop($filename);
            $filename = implode('.', $filename);

            if($filename == 'StorageInterface') continue;

            $className = explode("\\",__CLASS__);
            array_pop($className);
            array_push($className, 'Storage');
            array_push($className, $filename);
            $className = implode('\\', $className);

            self::registerStorage($className);
        }
    }
public static function init ( ) { // Initialize format drivers foreach ( glob ( implode ( DIRECTORY_SEPARATOR , array ( __DIR__ , 'Format' , '*.php' ) ) ) as $ filename ) { $ filename = explode ( DIRECTORY_SEPARATOR , $ filename ) ; $ filename = explode ( '.' , array_pop ( $ filename ) ) ; array_pop ( $ filename ) ; $ filename = implode ( '.' , $ filename ) ; if ( $ filename == 'FormatInterface' ) continue ; $ className = explode ( "\\" , __CLASS__ ) ; array_pop ( $ className ) ; array_push ( $ className , 'Format' ) ; array_push ( $ className , $ filename ) ; $ className = implode ( '\\' , $ className ) ; self :: registerFormat ( $ className ) ; } // Initialize storage drivers foreach ( glob ( implode ( DIRECTORY_SEPARATOR , array ( __DIR__ , 'Storage' , '*.php' ) ) ) as $ filename ) { $ filename = explode ( DIRECTORY_SEPARATOR , $ filename ) ; $ filename = explode ( '.' , array_pop ( $ filename ) ) ; array_pop ( $ filename ) ; $ filename = implode ( '.' , $ filename ) ; if ( $ filename == 'StorageInterface' ) continue ; $ className = explode ( "\\" , __CLASS__ ) ; array_pop ( $ className ) ; array_push ( $ className , 'Storage' ) ; array_push ( $ className , $ filename ) ; $ className = implode ( '\\' , $ className ) ; self :: registerStorage ( $ className ) ; } }
Initialize all direct-access variables
This gets called as soon as this file is loaded
Initialize all direct - access variables This gets called as soon as this file is loaded