cvs: pear /MDB_QueryTool/QueryTool Query.php
| From: | Lorenzo Alberton | Date: | Mon, 21 Feb 2005 17:48:40 +0000 |
| Subject: | cvs: pear /MDB_QueryTool/QueryTool Query.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-29627@lists.php.net to get a copy of this message | ||
quipo Mon Feb 21 12:48:40 2005 EDT
Modified files:
/pear/MDB_QueryTool/QueryTool Query.php
Log:
phpdoc + CS
http://cvs.php.net/diff.php/pear/MDB_QueryTool/QueryTool/Query.php?r1=1.39&r2=1.40&ty=u
Index: pear/MDB_QueryTool/QueryTool/Query.php
diff -u pear/MDB_QueryTool/QueryTool/Query.php:1.39 pear/MDB_QueryTool/QueryTool/Query.php:1.40
--- pear/MDB_QueryTool/QueryTool/Query.php:1.39 Mon Feb 21 12:33:33 2005
+++ pear/MDB_QueryTool/QueryTool/Query.php Mon Feb 21 12:48:39 2005
@@ -14,7 +14,7 @@
// | Author: Lorenzo Alberton <l.alberton at quipo.it> |
// +----------------------------------------------------------------------+
//
-// $Id: Query.php,v 1.39 2005/02/21 17:33:33 quipo Exp $
+// $Id: Query.php,v 1.40 2005/02/21 17:48:39 quipo Exp $
//
// This is just a port of DB_QueryTool, originally written by
// Wolfram Kriesing and Paolo Panto, vision:produktion <wk@visionp.de>
@@ -1348,6 +1348,8 @@
/**
* quotes all the data in this array if we are not in raw mode!
+ * @param array $data
+ * @return array
* @access private
*/
function _quoteArray($data)
@@ -1365,6 +1367,8 @@
/**
* quotes all the data in this array if we are not in raw mode!
+ * @param mixed $data
+ * @return mixed
* @access private
*/
function _quote($data)
@@ -1373,12 +1377,17 @@
return $data;
} else {
switch(gettype($data)) {
- case 'array': return $this->_quoteArray($data);
- case 'boolean': return $this->db->getBooleanValue($data);
- case 'double': return $this->db->getFloatValue($data);
- case 'integer': return $this->db->getIntegerValue($data);
+ case 'array':
+ return $this->_quoteArray($data);
+ case 'boolean':
+ return $this->db->getBooleanValue($data);
+ case 'double':
+ return $this->db->getFloatValue($data);
+ case 'integer':
+ return $this->db->getIntegerValue($data);
case 'string': //if 'string' or 'unknown', quote as
text
- default: return $this->db->getTextValue($data);
+ default:
+ return $this->db->getTextValue($data);
}
}
}