cvs: pear /MDB2_Schema/MDB2 Schema.php

From: Date: Sun, 20 Aug 2006 02:45:18 +0000
Subject: cvs: pear /MDB2_Schema/MDB2 Schema.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-41704@lists.php.net to get a copy of this message
ifeghali Sun Aug 20 02:45:18 2006 UTC Modified files: /pear/MDB2_Schema/MDB2 Schema.php Log: - rewritten some docblocks - added fold markers where missing http://cvs.php.net/viewvc.cgi/pear/MDB2_Schema/MDB2/Schema.php?r1=1.88&r2=1.89&diff_format=u Index: pear/MDB2_Schema/MDB2/Schema.php diff -u pear/MDB2_Schema/MDB2/Schema.php:1.88 pear/MDB2_Schema/MDB2/Schema.php:1.89 --- pear/MDB2_Schema/MDB2/Schema.php:1.88 Sun Aug 20 00:17:11 2006 +++ pear/MDB2_Schema/MDB2/Schema.php Sun Aug 20 02:45:18 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: Schema.php,v 1.88 2006/08/20 00:17:11 ifeghali Exp $ +// $Id: Schema.php,v 1.89 2006/08/20 02:45:18 ifeghali Exp $ // require_once 'MDB2.php'; @@ -146,8 +146,11 @@ return '0.4.3'; } + // }}} + // {{{ arrayMergeClobber() + /** - * Clobbers two arrays together. + * Clobbers two arrays together * * @param array array that should be clobbered * @param array array that should be clobbered @@ -188,7 +191,7 @@ // {{{ getWarnings() /** - * Get all warnings in reverse order. + * Get all warnings in reverse order * * This means that the last warning is the first element in the array * @@ -205,7 +208,7 @@ // {{{ setOption() /** - * set the option for the db class + * Sets the option for the db class * * @param string option name * @param mixed value for the option @@ -775,10 +778,14 @@ return $result; } + // }}} + // {{{ buildFieldValue() + /** - * Appends the contents of second argument + '=' to the beginning of first argument + * Appends the contents of second argument + '=' to the beginning of first + * argument. * - * Used with array_walk() in initializeTable() for the UPDATE query. + * Used with array_walk() in initializeTable() for UPDATEs. * * @param string value of array's element * @param string key of array's element @@ -797,15 +804,14 @@ // {{{ getExpression() /** - * Generates a string that represents a value that should be associated - * with a column in a SQL query. + * Generates a string that represents a value that would be associated + * with a column in a DML instruction. * * @param array multi dimensional array that represents the parsed field - * of an initialization instruction. - * @param array multi dimensional array that contains the definition - * of the fields of the table. - * @param string type of column - * + * of an DML instruction. + * @param array multi dimensional array that contains the + * definition for current table's fields. + * @param string type of given field * * @return string * @@ -872,7 +878,7 @@ * * @param string parsed descriptive operator * - * @return string + * @return string matching SQL operator * * @access public * @static @@ -908,13 +914,13 @@ // {{{ getInstructionFields() /** - * Walks the parsed initialization instruction array, field by field, - * storing them and their processed values inside an array. + * Walks the parsed DML instruction array, field by field, + * storing them and their processed values inside a new array. * * @param array multi dimensional array that contains the parsed - * initialization instruction to be processed. - * @param array multi dimensional array that contains the definition - * of the fields of the table. + * DML instruction to be processed. + * @param array multi dimensional array that contains the + * definition for current table's fields. * * @return array array of strings in the form 'field_name' => 'value' * @@ -937,16 +943,15 @@ // {{{ getInstructionWhere() /** - * Walks the parsed WHERE statement of the initialization instruction - * array, field by field, storing them and their processed values - * inside an array. + * Translates the parsed WHERE expression of a DML instruction + * (array structure) to a SQL WHERE clause (string). * - * @param array multi dimensional array that contains the parsed - * initialization instruction to be processed. - * @param array multi dimensional array that contains the definition - * of the fields of the table. + * @param array multi dimensional array that contains the + * structure of the current DML instruction. + * @param array multi dimensional array that contains the + * definition for current table's fields. * - * @return array array of strings in the form 'field_name' => 'value' + * @return string SQL WHERE clause * * @access public * @static

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