Rev 44 | Rev 47 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 44 | Rev 46 | ||
---|---|---|---|
Line 61... | Line 61... | ||
61 | }
|
61 | }
|
62 | 62 | ||
63 | /**
|
63 | /**
|
64 | * Creates this MySQL database
|
64 | * Creates this MySQL database
|
65 | *
|
65 | *
|
- | 66 | * @param string $dsn
|
|
- | 67 | * Ignored. Required for strict compatibility only.
|
|
66 | * @param string $username = null
|
68 | * @param string $username = null
|
67 | * @param string $password = null
|
69 | * @param string $password = null
|
- | 70 | * @param array? $options = null
|
|
- | 71 | * Ignored. Required for strict compatibility only.
|
|
- | 72 | * @param string $dbspec = null
|
|
- | 73 | * Currently ignored.
|
|
68 | * @param boolean $force = false
|
74 | * @param boolean $force = false
|
69 | * @see Database::create()
|
75 | * @see Database::create()
|
70 | */
|
76 | */
|
71 | public function create ($username = null, $password = null, $force = false) |
77 | public function create ($dsn, $username = null, $password = null, |
- | 78 | array $options = null, $dbspec = null, $force = false) |
|
72 | {
|
79 | {
|
73 | return parent::create( |
80 | return parent::create( |
74 | "mysql:host={$this->_host}"
|
81 | "mysql:host={$this->_host}"
|
75 | . (!is_null($this->_charset) ? ";charset={$this->_charset}" : ''), |
82 | . (!is_null($this->_charset) ? ";charset={$this->_charset}" : ''), |
76 | $username, $password, null, $force); |
83 | $username, $password, null, $force); |