adoSchema::adoSchema PHP 메소드

adoSchema() 공개 메소드

Creating an adoSchema object is the first step in processing an XML schema. The only parameter is an ADOdb database connection object, which must already have been created.
public adoSchema ( object $db )
$db object ADOdb database connection object.
    function adoSchema($db)
    {
        // Initialize the environment
        $this->mgq = get_magic_quotes_runtime();
        ini_set("magic_quotes_runtime", 0);
        #set_magic_quotes_runtime(0);
        $this->db = $db;
        $this->debug = $this->db->debug;
        $this->dict = NewDataDictionary($this->db);
        $this->sqlArray = array();
        $this->schemaVersion = XMLS_SCHEMA_VERSION;
        $this->executeInline(XMLS_EXECUTE_INLINE);
        $this->continueOnError(XMLS_CONTINUE_ON_ERROR);
        $this->setUpgradeMethod();
    }