summaryrefslogtreecommitdiffstats
path: root/class/CommonTable.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-08-01 11:01:26 +0200
committerRemi Collet <fedora@famillecollet.com>2010-08-01 11:01:26 +0200
commit524eafd21886717271be06d05bdfe92adce0b6e1 (patch)
tree4080445f98b7530ac4dd78501ec0c7652ba8beed /class/CommonTable.php
parentde7b6100e3ef554797e86c92e0c3c13ead4dfe67 (diff)
parent06a6a4f777272421970bb827c898f6d36f1ab669 (diff)
Merge http://github.com/trasher/rpmphp
Diffstat (limited to 'class/CommonTable.php')
-rw-r--r--class/CommonTable.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/class/CommonTable.php b/class/CommonTable.php
index 8fd0471..51c0cd6 100644
--- a/class/CommonTable.php
+++ b/class/CommonTable.php
@@ -73,8 +73,8 @@ abstract class CommonTable
* Execute an SQL statement (INSERT, DELETE, ...)
*
* @param string $sql The SQL clause
- *
- * @param integer number of affected rows
+ *
+ * @return integer number of affected rows
*/
protected function exec($sql)
{
@@ -148,6 +148,8 @@ abstract class CommonTable
/**
* Create the table
+ *
+ * @return void
*/
abstract protected function createTable();
@@ -158,7 +160,10 @@ abstract class CommonTable
* foreach ($DB->request() as $ID => $data) { ... }
* foreach ($DB->request("ID=1") as $ID => $data) { ... }
* foreach ($DB->request("", "name") as $ID => $data) { ... }
- * foreach ($DB->request(array("name"=>"SBEI003W","entities_id"=>1),array("serial","otherserial")) { ... }
+ * foreach ($DB->request(array(
+ * "name"=>"SBEI003W",
+ * "entities_id"=>1),
+ * array("serial","otherserial")) { ... }
*
* @param string|array $crit string or array of field/values,
* ex array("id"=>1), if empty => all rows
@@ -194,7 +199,7 @@ abstract class CommonTable
*
* @param string $fieldkey name of the field to use as index
* @param string $fieldvalue name of the field to use as value
- * @param array $crit for request
+ * @param array $crit for request
*
* @return hashtable
*/