public static function &GetDefinitions()
    {
        if(!self::ValidExtension())
        {
            CommandLine\Error::Show(t("Invalid extension directory, definitions could not be loaded."));
        }

        if(!is_object(self::$symbols))
        {
            self::$symbols = new Definitions\Symbols;
            
            $importer = new Definitions\Importer(
                self::$symbols, 
                "definitions",
                Definitions\Type::JSON
            );
            
            $importer->Start();
        }

        return self::$symbols;
    }
public static function &GetDefinitions()
    {
        if(!self::ValidExtension())
        {
            CommandLine\Error::Show(t("Invalid extension directory, definitions could not be loaded."));
        }

        if(!is_object(self::$symbols))
        {
            self::$symbols = new Definitions\Symbols;
            
            $importer = new Definitions\Importer(
                self::$symbols, 
                "definitions",
                Definitions\Type::JSON
            );
            
            $importer->Start();
        }

        return self::$symbols;
    }
public static function & GetDefinitions ( ) { if ( ! self :: ValidExtension ( ) ) { CommandLine \ Error :: Show ( t ( "Invalid extension directory, definitions could not be loaded." ) ) ; } if ( ! is_object ( self :: $ symbols ) ) { self :: $ symbols = new Definitions \ Symbols ; $ importer = new Definitions \ Importer ( self :: $ symbols , "definitions" , Definitions \ Type :: JSON ) ; $ importer -> Start ( ) ; } return self :: $ symbols ; }
Loads definitions files if not yet loaded and returns a reference to a
symbols object that can be used throught the application.
@return \Peg\Lib\Definitions\Symbols
Loads definitions files if not yet loaded and returns a reference to a symbols object that can be used throught the application .