Fixed create_database function signature, fixed typo in README
This commit is contained in:
parent
7a47906743
commit
9ddab65bc0
@ -7,7 +7,7 @@ Because php-gtk is such a pain to compile on Windows, I've put together this pac
|
||||
|
||||
## PHP Requirements
|
||||
* Version 5.2 - 5.3.*
|
||||
* PHP-Cario PECL extension
|
||||
* PHP-Cairo PECL extension
|
||||
* [PHP-GTK](http://gtk.php.net) PHP Extension
|
||||
* Curl
|
||||
* OpenSSL
|
||||
|
@ -159,6 +159,6 @@ abstract class db_manip {
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
abstract function create_table($name, $columns, $constraints, $indexes);
|
||||
abstract function create_table($name, $columns, $constraints=array(), $indexes=array());
|
||||
}
|
||||
// End of db_pdo.php
|
@ -19,7 +19,7 @@
|
||||
*/
|
||||
class firebird_manip extends db_manip{
|
||||
|
||||
function create_table($name, $fields, $constraints=array())
|
||||
function create_table($name, $fields, $constraints=array(), $indexes=array())
|
||||
{
|
||||
$sql = "CREATE TABLE {$name}";
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
*/
|
||||
class MySQL_manip extends db_manip{
|
||||
|
||||
function create_table($name, $columns, $constraints, $indexes)
|
||||
function create_table($name, $columns, $constraints=array(), $indexes=array())
|
||||
{
|
||||
//TODO: implement
|
||||
}
|
||||
|
@ -19,7 +19,7 @@
|
||||
*/
|
||||
class ODBC_manip extends db_manip {
|
||||
|
||||
function create_table()
|
||||
function create_table($name, $columns, $constraints=array(), $indexes=array())
|
||||
{
|
||||
//ODBC can't know how to create a table
|
||||
return FALSE;
|
||||
|
@ -19,7 +19,7 @@
|
||||
*/
|
||||
class pgSQL_manip extends db_manip {
|
||||
|
||||
function create_table($name, $columns, $constraints, $indexes)
|
||||
function create_table($name, $columns, $constraints=array(), $indexes=array())
|
||||
{
|
||||
//TODO: implement
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ class SQLite_manip extends db_manip {
|
||||
* @param array $indexes // column => index pairs
|
||||
* @return string
|
||||
*/
|
||||
function create_table($name, $columns, $constraints, $indexes)
|
||||
function create_table($name, $columns, $constraints=array(), $indexes=array())
|
||||
{
|
||||
$column_array = array();
|
||||
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user