private function LoadFromPHP($path)
    {
        $this->definitions_path = rtrim($path, "/\\") . "/";
        $this->import_type = Type::PHP;
        
        // This variable is used by the php definition files to reference
        // this object and populate it with elements.
        $symbols =& $this->symbols;
        
        if(file_exists($this->definitions_path . "constants.php"))
        {
            $this->SendMessage(t("Loading constants.php"));
            include($this->definitions_path . "constants.php");
        }
        
        if(file_exists($this->definitions_path . "enumerations.php"))
        {
            $this->SendMessage(t("Loading enumerations.php"));
            include($this->definitions_path . "enumerations.php");
        }
        
        if(file_exists($this->definitions_path . "type_definitions.php"))
        {
            $this->SendMessage(t("Loading type_definitions.php"));
            include($this->definitions_path . "type_definitions.php");
        }
        
        if(file_exists($this->definitions_path . "variables.php"))
        {
            $this->SendMessage(t("Loading variables.php"));
            include($this->definitions_path . "variables.php");
        }
        
        if(file_exists($this->definitions_path . "functions.php"))
        {
            $this->SendMessage(t("Loading functions.php"));
            include($this->definitions_path . "functions.php");
        }
        
        if(file_exists($this->definitions_path . "classes.php"))
        {
            $this->SendMessage(t("Loading classes.php"));
            include($this->definitions_path . "classes.php");
        }
    }
private function LoadFromPHP($path)
    {
        $this->definitions_path = rtrim($path, "/\\") . "/";
        $this->import_type = Type::PHP;
        
        // This variable is used by the php definition files to reference
        // this object and populate it with elements.
        $symbols =& $this->symbols;
        
        if(file_exists($this->definitions_path . "constants.php"))
        {
            $this->SendMessage(t("Loading constants.php"));
            include($this->definitions_path . "constants.php");
        }
        
        if(file_exists($this->definitions_path . "enumerations.php"))
        {
            $this->SendMessage(t("Loading enumerations.php"));
            include($this->definitions_path . "enumerations.php");
        }
        
        if(file_exists($this->definitions_path . "type_definitions.php"))
        {
            $this->SendMessage(t("Loading type_definitions.php"));
            include($this->definitions_path . "type_definitions.php");
        }
        
        if(file_exists($this->definitions_path . "variables.php"))
        {
            $this->SendMessage(t("Loading variables.php"));
            include($this->definitions_path . "variables.php");
        }
        
        if(file_exists($this->definitions_path . "functions.php"))
        {
            $this->SendMessage(t("Loading functions.php"));
            include($this->definitions_path . "functions.php");
        }
        
        if(file_exists($this->definitions_path . "classes.php"))
        {
            $this->SendMessage(t("Loading classes.php"));
            include($this->definitions_path . "classes.php");
        }
    }
private function LoadFromPHP ( $ path ) { $ this -> definitions_path = rtrim ( $ path , "/\\" ) . "/" ; $ this -> import_type = Type :: PHP ; // This variable is used by the php definition files to reference // this object and populate it with elements. $ symbols = & $ this -> symbols ; if ( file_exists ( $ this -> definitions_path . "constants.php" ) ) { $ this -> SendMessage ( t ( "Loading constants.php" ) ) ; include ( $ this -> definitions_path . "constants.php" ) ; } if ( file_exists ( $ this -> definitions_path . "enumerations.php" ) ) { $ this -> SendMessage ( t ( "Loading enumerations.php" ) ) ; include ( $ this -> definitions_path . "enumerations.php" ) ; } if ( file_exists ( $ this -> definitions_path . "type_definitions.php" ) ) { $ this -> SendMessage ( t ( "Loading type_definitions.php" ) ) ; include ( $ this -> definitions_path . "type_definitions.php" ) ; } if ( file_exists ( $ this -> definitions_path . "variables.php" ) ) { $ this -> SendMessage ( t ( "Loading variables.php" ) ) ; include ( $ this -> definitions_path . "variables.php" ) ; } if ( file_exists ( $ this -> definitions_path . "functions.php" ) ) { $ this -> SendMessage ( t ( "Loading functions.php" ) ) ; include ( $ this -> definitions_path . "functions.php" ) ; } if ( file_exists ( $ this -> definitions_path . "classes.php" ) ) { $ this -> SendMessage ( t ( "Loading classes.php" ) ) ; include ( $ this -> definitions_path . "classes.php" ) ; } }
Load all kind of symbols from php files previously created
by \Peg\Lib\Definitions\Exporter.
@param string $path Directory where the php files reside.
Load all kind of symbols from php files previously created by \ Peg \ Lib \ Definitions \ Exporter .