diff options
Diffstat (limited to 'class/CommonTable.php')
| -rw-r--r-- | class/CommonTable.php | 13 | 
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       */ | 
