2
0
Преглед на файлове

[ZF-11480] Add the "throws" declaration in PHP Doc

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24147 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp преди 14 години
родител
ревизия
badf2feef1
променени са 2 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 2 0
      library/Zend/Db/Adapter/Abstract.php
  2. 3 1
      library/Zend/Db/Table/Abstract.php

+ 2 - 0
library/Zend/Db/Adapter/Abstract.php

@@ -531,6 +531,7 @@ abstract class Zend_Db_Adapter_Abstract
      * @param mixed $table The table to insert data into.
      * @param array $bind Column-value pairs.
      * @return int The number of affected rows.
+     * @throws Zend_Db_Adapter_Exception
      */
     public function insert($table, array $bind)
     {
@@ -583,6 +584,7 @@ abstract class Zend_Db_Adapter_Abstract
      * @param  array        $bind  Column-value pairs.
      * @param  mixed        $where UPDATE WHERE clause(s).
      * @return int          The number of affected rows.
+     * @throws Zend_Db_Adapter_Exception
      */
     public function update($table, array $bind, $where = '')
     {

+ 3 - 1
library/Zend/Db/Table/Abstract.php

@@ -744,6 +744,7 @@ abstract class Zend_Db_Table_Abstract
      * Initialize database adapter.
      *
      * @return void
+     * @throws Zend_Db_Table_Exception
      */
     protected function _setupDatabaseAdapter()
     {
@@ -974,6 +975,7 @@ abstract class Zend_Db_Table_Abstract
      *
      * @param  string $key The specific info part to return OPTIONAL
      * @return mixed
+     * @throws Zend_Db_Table_Exception
      */
     public function info($key = null)
     {
@@ -1052,7 +1054,7 @@ abstract class Zend_Db_Table_Abstract
         /**
          * If the primary key can be generated automatically, and no value was
          * specified in the user-supplied data, then omit it from the tuple.
-         * 
+         *
          * Note: this checks for sensible values in the supplied primary key
          * position of the data.  The following values are considered empty:
          *   null, false, true, '', array()