示例#1
0
 /**
  * Retrieve all form element values
  *
  * Strips off the password if null or the empty string.
  *
  * @param   bool    $suppressArrayNotation
  *
  * @return  array
  */
 public function getValues($suppressArrayNotation = false)
 {
     $values = parent::getValues($suppressArrayNotation);
     if (!$values['password']) {
         unset($values['password']);
     }
     return $values;
 }
示例#2
0
 /**
  * Update a group
  *
  * @return  bool
  */
 protected function onUpdateSuccess()
 {
     if (parent::onUpdateSuccess()) {
         if (($newName = $this->getValue('group_name')) !== $this->getIdentifier()) {
             $this->getRedirectUrl()->setParam('group', $newName);
         }
         return true;
     }
     return false;
 }