Rev 58 | Rev 66 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 58 | Rev 61 | ||
|---|---|---|---|
| Line 692... | Line 692... | ||
| 692 |    * @param array $updates
 | 
            692 |    * @param array $updates
 | 
          
| 693 |    *   Associative array of column-value pairs
 | 
            693 |    *   Associative array of column-value pairs
 | 
          
| 694 |    * @param array|string $where
 | 
            694 |    * @param array|string $where
 | 
          
| 695 |    *   Only the records matching this condition are updated
 | 
            695 |    *   Only the records matching this condition are updated
 | 
          
| 696 |    * @return bool
 | 
            696 |    * @return bool
 | 
          
| - | 697 |    * @see PDOStatement::execute()
 | 
          |
| 697 |    */
 | 
            698 |    */
 | 
          
| 698 | public function update($tables, array $updates, $where = null)  | 
            699 | public function update ($tables, array $updates, $where = null)  | 
          
| 699 |   {
 | 
            700 |   {
 | 
          
| 700 | if (!$tables)  | 
            701 | if (!$tables)  | 
          
| 701 |     {
 | 
            702 |     {
 | 
          
| 702 | throw new InvalidArgumentException('No table specified');  | 
            703 | throw new InvalidArgumentException('No table specified');  | 
          
| 703 |     }
 | 
            704 |     }
 | 
          
| Line 801... | Line 802... | ||
| 801 |    *   Indexed array, or comma-separated list of column names.
 | 
            802 |    *   Indexed array, or comma-separated list of column names.
 | 
          
| 802 |    *   Needs only be passed if <var>$values</var> is not an associative array
 | 
            803 |    *   Needs only be passed if <var>$values</var> is not an associative array
 | 
          
| 803 |    *   and the values are not in column order (default: <code>null</code>);
 | 
            804 |    *   and the values are not in column order (default: <code>null</code>);
 | 
          
| 804 |    *   is ignored otherwise.  <strong>You SHOULD NOT rely on column order.</strong>
 | 
            805 |    *   is ignored otherwise.  <strong>You SHOULD NOT rely on column order.</strong>
 | 
          
| 805 |    * @return bool
 | 
            806 |    * @return bool
 | 
          
| 806 |    *   <code>true</code> if successful, <code>false</code> otherwise
 | 
            - | |
| 807 |    * @see PDOStatement::execute()
 | 
            807 |    * @see PDOStatement::execute()
 | 
          
| 808 |    */
 | 
            808 |    */
 | 
          
| 809 | public function insert($table, $values, $cols = null)  | 
            809 | public function insert ($table, $values, $cols = null)  | 
          
| 810 |   {
 | 
            810 |   {
 | 
          
| 811 | if ($cols != null)  | 
            811 | if ($cols != null)  | 
          
| 812 |     {
 | 
            812 |     {
 | 
          
| 813 | $cols = ' ('  | 
            813 | $cols = ' ('  | 
          
| 814 | . (is_array($cols)  | 
            814 | . (is_array($cols)  |