cvs: pear /MDB manager_common.php

From: Date: Sat, 20 Jul 2002 23:38:48 +0000
Subject: cvs: pear /MDB manager_common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5221@lists.php.net to get a copy of this message
lsmith Sat Jul 20 19:38:48 2002 EDT Modified files: /pear/MDB manager_common.php Log: renamed getField to getFieldDeclaration Index: pear/MDB/manager_common.php diff -u pear/MDB/manager_common.php:1.9 pear/MDB/manager_common.php:1.10 --- pear/MDB/manager_common.php:1.9 Sat Jul 20 15:26:33 2002 +++ pear/MDB/manager_common.php Sat Jul 20 19:38:48 2002 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@dybnet.de> | // +----------------------------------------------------------------------+ // -// $Id: manager_common.php,v 1.9 2002/07/20 19:26:33 lsmith Exp $ +// $Id: manager_common.php,v 1.10 2002/07/20 23:38:48 lsmith Exp $ // // MDB proxy class for RDBMS management methods. // @@ -56,7 +56,7 @@ { // }}} - // {{{ getField() + // {{{ getFieldDeclaration() /** * create a new database @@ -74,11 +74,11 @@ * Boolean flag that indicates whether this field is constrained * to not be set to NULL. * - * @access private + * @access public * * @return mixed string on success, a DB error on failure */ - function getField(&$db, $field_name, &$field) + function getFieldDeclaration(&$db, $field_name, &$field) { if (!strcmp($field_name, "")) { return $db->raiseError(DB_ERROR_NOSUCHFIELD, "", "", "Get field: it was not specified a valid field name (\"$field_name\")"); @@ -147,7 +147,7 @@ * Boolean flag that indicates whether this field is constrained * to not be set to NULL. * - * @access private + * @access public * * @return mixed string on success, a DB error on failure */ @@ -161,7 +161,7 @@ $query_fields.= ", "; } $field_name = key($fields); - $query = $this->getField(&$db, $field_name, $fields[$field_name]); + $query = $this->getFieldDeclaration(&$db, $field_name, $fields[$field_name]); if (MDB::isError($query)) { return $query; }

« previous php.pear.cvs (#5221) next »