From 06a6a4f777272421970bb827c898f6d36f1ab669 Mon Sep 17 00:00:00 2001
From: "Johan \"Papa\" Cwiklinski" <trasher@odysseus.(none)>
Date: Sun, 1 Aug 2010 10:55:01 +0200
Subject: Applying PEAR coding standards, refs #48

---
 class/CommonTable.php | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

(limited to 'class/CommonTable.php')

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
      */
-- 
cgit