summaryrefslogtreecommitdiffstats
path: root/class/CommonTable.php
diff options
context:
space:
mode:
authorJohan "Papa" Cwiklinski <trasher@odysseus.(none)>2010-08-01 10:55:01 +0200
committerJohan "Papa" Cwiklinski <trasher@odysseus.(none)>2010-08-01 10:55:01 +0200
commit06a6a4f777272421970bb827c898f6d36f1ab669 (patch)
tree4080445f98b7530ac4dd78501ec0c7652ba8beed /class/CommonTable.php
parent8563cd5e8404d11c0a76148c103acc363bd5776e (diff)
Applying PEAR coding standards, refs #48
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
*/