Пример #1
0
 /**
  * Update a group
  *
  * 
  * @param int $id The ID of the role
  * @param array $input The data to update
  * @return array
  */
 public function update($id = 0, $input = array(), $skip_validation = false)
 {
     return parent::update($id, array('name' => $input['name'], 'description' => $input['description']));
 }
Пример #2
0
 public function update($id, $input, $skip_validation = FALSE)
 {
     $this->validate = array(array('field' => 'email', 'rules' => 'required|valid_email'), array('field' => 'password', 'rules' => ''), array('field' => 'password_confirm', 'rules' => 'matches[password]'));
     return parent::update($id, $input);
 }