Exemple #1
0
 /**
  * Overload update's method to generate the authz file.
  *
  * @param array $datagetAdapter->
  * @param string where SQL where
  * @return integer The number of rows updated.
  */
 public function update(array $data, $where)
 {
     $res = parent::update($data, $where);
     USVN_Authz::generate();
     return $res;
 }
Exemple #2
0
 /**
  * Updates existing rows.
  *
  * @param array Column-value pairs.
  * @param string An SQL WHERE clause.
  * @return int The number of rows updated.
  */
 public function update(array $data, $where)
 {
     $res = parent::update($data, $where);
     $this->updateHtpasswd();
     return $res;
 }