public function get_manager() {
        global $CFG;

        if (!$this->database_manager) {
            require_once($CFG->libdir.'/ddllib.php');

            $classname = $this->get_dbfamily().'_sql_generator';
            require_once("$CFG->libdir/ddl/$classname.php");
            $generator = new $classname($this, $this->temptables);

            $this->database_manager = new database_manager($this, $generator);
        }
        return $this->database_manager;
    }
public function get_manager() {
        global $CFG;

        if (!$this->database_manager) {
            require_once($CFG->libdir.'/ddllib.php');

            $classname = $this->get_dbfamily().'_sql_generator';
            require_once("$CFG->libdir/ddl/$classname.php");
            $generator = new $classname($this, $this->temptables);

            $this->database_manager = new database_manager($this, $generator);
        }
        return $this->database_manager;
    }
public function get_manager ( ) { global $ CFG ; if ( ! $ this -> database_manager ) { require_once ( $ CFG -> libdir . '/ddllib.php' ) ; $ classname = $ this -> get_dbfamily ( ) . '_sql_generator' ; require_once ( "$CFG->libdir/ddl/$classname.php" ) ; $ generator = new $ classname ( $ this , $ this -> temptables ) ; $ this -> database_manager = new database_manager ( $ this , $ generator ) ; } return $ this -> database_manager ; }
Returns the sql generator used for db manipulation.
Used mostly in upgrade.php scripts.
@return database_manager The instance used to perform ddl operations.
@see lib/ddl/database_manager.php
Returns the sql generator used for db manipulation . Used mostly in upgrade . php scripts .