Пример #1
0
 /**
  * Overload update's method to check some data before update
  *
  * @param array $data
  * @param string $where An SQL WHERE clause.
  * @return integer The number of rows updated.
  */
 public function update(array $data, $where)
 {
     if (isset($data['groups_name'])) {
         $this->checkGroupName($data['groups_name']);
     }
     return parent::update($data, $where);
 }
Пример #2
0
 /**
  * Overload update's method to check some data before update
  *
  * @param array $data
  * @param string $where An SQL WHERE clause.
  * @return integer The number of rows updated.
  */
 public function update(array $data, $where)
 {
     return parent::update($this->_cleanData($data), $where);
 }