Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  * @return boolean
  */
 public function beforeSave()
 {
     $this->addProfile();
     $this->addUserGroups();
     $this->validator = new modUserValidation($this, $this->object, $this->profile);
     $this->validator->validate();
     return parent::beforeSave();
 }
Ejemplo n.º 2
0
 public function beforeSave()
 {
     $this->setProfile();
     $this->setRemoteData();
     $this->validator = new modUserValidation($this, $this->object, $this->profile);
     $this->validator->validate();
     return parent::beforeSave();
 }
Ejemplo n.º 3
0
 /**
  * {@inheritDoc}
  * @return boolean
  */
 public function beforeSave()
 {
     $this->addProfile();
     $sudo = $this->getProperty('sudo', null);
     if ($sudo !== null) {
         $this->object->setSudo(!empty($sudo));
     }
     $this->validator = new modUserValidation($this, $this->object, $this->profile);
     $this->validator->validate();
     return parent::beforeSave();
 }
Ejemplo n.º 4
0
 /**
  * {@inheritDoc}
  * @return boolean
  */
 public function beforeSave()
 {
     $this->setProfile();
     $this->setRemoteData();
     $sudo = $this->getProperty('sudo', null);
     if ($sudo !== null) {
         $this->object->setSudo(!empty($sudo));
     }
     $this->validator = new modUserValidation($this, $this->object, $this->profile);
     $this->validator->validate();
     $canChangeStatus = $this->checkActiveChange();
     if ($canChangeStatus !== true) {
         $this->addFieldError('active', $canChangeStatus);
     }
     return parent::beforeSave();
 }