Subversion Repositories PHPX

Rev

Rev 41 | Rev 46 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 41 Rev 44
Line 57... Line 57...
57
      $this->_options[PDO::MYSQL_ATTR_INIT_COMMAND] = "SET NAMES " . $this->_charset;
57
      $this->_options[PDO::MYSQL_ATTR_INIT_COMMAND] = "SET NAMES " . $this->_charset;
58
    }
58
    }
59
59
60
    parent::__construct();
60
    parent::__construct();
61
  }
61
  }
-
 
62
-
 
63
  /**
-
 
64
   * Creates this MySQL database
-
 
65
   *
-
 
66
   * @param string $username = null
-
 
67
   * @param string $password = null
-
 
68
   * @param boolean $force = false
-
 
69
   * @see Database::create()
-
 
70
   */
-
 
71
  public function create ($username = null, $password = null, $force = false)
-
 
72
  {
-
 
73
    return parent::create(
-
 
74
      "mysql:host={$this->_host}"
-
 
75
      . (!is_null($this->_charset) ? ";charset={$this->_charset}" : ''),
-
 
76
      $username, $password, null, $force);
-
 
77
  }
62
}
78
}
63
79