Fixed create_database function signature, fixed typo in README

This commit is contained in:
Timothy Warren 2012-02-07 16:23:41 -05:00
parent 7a47906743
commit 9ddab65bc0
8 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@ Because php-gtk is such a pain to compile on Windows, I've put together this pac
## PHP Requirements ## PHP Requirements
* Version 5.2 - 5.3.* * Version 5.2 - 5.3.*
* PHP-Cario PECL extension * PHP-Cairo PECL extension
* [PHP-GTK](http://gtk.php.net) PHP Extension * [PHP-GTK](http://gtk.php.net) PHP Extension
* Curl * Curl
* OpenSSL * OpenSSL

View File

@ -159,6 +159,6 @@ abstract class db_manip {
* *
* @return string * @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 // End of db_pdo.php

View File

@ -19,7 +19,7 @@
*/ */
class firebird_manip extends db_manip{ 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}"; $sql = "CREATE TABLE {$name}";
} }

View File

@ -17,7 +17,7 @@
*/ */
class MySQL_manip extends db_manip{ class MySQL_manip extends db_manip{
function create_table($name, $columns, $constraints, $indexes) function create_table($name, $columns, $constraints=array(), $indexes=array())
{ {
//TODO: implement //TODO: implement
} }

View File

@ -19,7 +19,7 @@
*/ */
class ODBC_manip extends db_manip { 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 //ODBC can't know how to create a table
return FALSE; return FALSE;

View File

@ -19,7 +19,7 @@
*/ */
class pgSQL_manip extends db_manip { class pgSQL_manip extends db_manip {
function create_table($name, $columns, $constraints, $indexes) function create_table($name, $columns, $constraints=array(), $indexes=array())
{ {
//TODO: implement //TODO: implement
} }

View File

@ -26,7 +26,7 @@ class SQLite_manip extends db_manip {
* @param array $indexes // column => index pairs * @param array $indexes // column => index pairs
* @return string * @return string
*/ */
function create_table($name, $columns, $constraints, $indexes) function create_table($name, $columns, $constraints=array(), $indexes=array())
{ {
$column_array = array(); $column_array = array();

Binary file not shown.