cvs: pear /MDB2_Schema/MDB2 Schema.php
| From: | Igor Feghali | Date: | Thu, 17 Aug 2006 21:56:51 +0000 |
| Subject: | cvs: pear /MDB2_Schema/MDB2 Schema.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-41671@lists.php.net to get a copy of this message | ||
ifeghali Thu Aug 17 21:56:51 2006 UTC
Modified files:
/pear/MDB2_Schema/MDB2 Schema.php
Log:
Some docblock comments improved
http://cvs.php.net/viewvc.cgi/pear/MDB2_Schema/MDB2/Schema.php?r1=1.83&r2=1.84&diff_format=u
Index: pear/MDB2_Schema/MDB2/Schema.php
diff -u pear/MDB2_Schema/MDB2/Schema.php:1.83 pear/MDB2_Schema/MDB2/Schema.php:1.84
--- pear/MDB2_Schema/MDB2/Schema.php:1.83 Thu Aug 17 20:10:54 2006
+++ pear/MDB2_Schema/MDB2/Schema.php Thu Aug 17 21:56:51 2006
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: Schema.php,v 1.83 2006/08/17 20:10:54 lsmith Exp $
+// $Id: Schema.php,v 1.84 2006/08/17 21:56:51 ifeghali Exp $
//
require_once 'MDB2.php';
@@ -735,17 +735,19 @@
return $result;
}
- // }}}
- // {{{ buildFieldValue()
-
/**
- * Used with array_walk() to change values to key=value
- * for a later UPDATE query
+ * Appends the contents of second argument + '=' to the beginning of first argument
+ *
+ * Used with array_walk() in initializeTable() for the UPDATE query.
+ *
+ * @param string value of array's element
+ * @param string key of array's element
+ *
+ * @return void
*
- * @param array multi dimensional array that contains the
- * parsed element.
- * @return string
* @access public
+ * @static
+ * @see MDB2_Schema::initializeTable()
*/
function buildFieldValue(&$element, $key)
{
@@ -756,12 +758,18 @@
// {{{ getExpression()
/**
- * Translate the a parsed element to a string
+ * Generates a string that represents a value that should be associated
+ * with a column in a SQL query.
+ *
+ * @param mixed multi dimensional array that represents the parsed field
+ * of an initialization instruction.
+ * @param string type of column
*
- * @param array multi dimensional array that contains the
- * parsed element.
* @return string
+ *
* @access public
+ * @static
+ * @see MDB2_Schema::getInstructionFields(), MDB2_Schema::getInstructionWhere()
*/
function getExpression($element, $type = null)
{
@@ -808,12 +816,15 @@
// {{{ getOperator()
/**
- * Return the matching operator of the RDBMS
- * (should be ported to MDB2/Driver ?)
+ * Returns the matching SQL operator
+ *
+ * @param string parsed descriptive operator
*
- * @param string parsed operator
* @return string
+ *
* @access public
+ * @static
+ * @see MDB2_Schema::getExpression()
*/
function getOperator($op)
{
@@ -845,14 +856,17 @@
// {{{ getInstructionFields()
/**
- * Return the fields of the given initialization instruction
+ * Walks the parsed initialization instruction array, field by field,
+ * storing them and their processed values inside an array.
+ *
+ * @param mixed multi dimensional array that contains the parsed
+ * initialization instruction to be processed.
+ *
+ * @return array array of strings in the form 'field_name' => 'value'
*
- * @param array multi dimensional array that contains the
- * the instruction to be analised
- * @param array multi dimensional array that contains the
- * structure and optional data of the table
- * @return array
* @access public
+ * @static
+ * @see MDB2_Schema::initializeTable()
*/
function getInstructionFields($instruction)
{
@@ -869,12 +883,18 @@
// {{{ getInstructionWhere()
/**
- * Return the translated WHERE statement of the instruction
+ * Walks the parsed WHERE statement of the initialization instruction
+ * array, field by field, storing them and their processed values
+ * inside an array.
+ *
+ * @param mixed multi dimensional array that contains the parsed
+ * initialization instruction to be processed.
+ *
+ * @return array array of strings in the form 'field_name' => 'value'
*
- * @param array multi dimensional array that contains the
- * the instruction to be analised
- * @return string
* @access public
+ * @static
+ * @see MDB2_Schema::initializeTable()
*/
function getInstructionWhere($instruction)
{