original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Returns the sql generator used for db manipulation . Used mostly in upgrade . php scripts .