Subversion Repositories PHPX

Rev

Rev 47 | Rev 51 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 47 Rev 48
Line 611... Line 611...
611
  /**
611
  /**
612
   * Updates one or more records
612
   * Updates one or more records
613
   *
613
   *
614
   * @param string|array $tables
614
   * @param string|array $tables
615
   *   Table name
615
   *   Table name
616
   * @param array $values
616
   * @param array $updates
617
   *   Associative array of column-value pairs
617
   *   Associative array of column-value pairs
618
   * @param array|string $where
618
   * @param array|string $where
619
   *   Only the records matching this condition are updated
619
   *   Only the records matching this condition are updated
620
   * @return bool
620
   * @return bool
621
   */
621
   */
622
  public function update($tables, $updates, $where = null)
622
  public function update($tables, array $updates, $where = null)
623
  {
623
  {
624
    if (!$tables)
624
    if (!$tables)
625
    {
625
    {
626
      throw new InvalidArgumentException('No table specified');
626
      throw new InvalidArgumentException('No table specified');
627
    }
627
    }