Exemple #1
0
 public function saveUserAttributesForm($attributes)
 {
     foreach ($attributes as $uak) {
         $uak->saveAttributeForm($this);
     }
     $ue = new \Concrete\Core\User\Event\UserInfoWithAttributes($this);
     $ue->setAttributes($attributes);
     Events::dispatch('on_user_attributes_saved', $ue);
 }
 /**
  * @param UserAttributeKey[] $attributes
  */
 public function saveUserAttributesForm($attributes)
 {
     foreach ($attributes as $uak) {
         $controller = $uak->getController();
         $value = $controller->createAttributeValueFromRequest();
         $this->setAttribute($uak, $value);
     }
     $ue = new \Concrete\Core\User\Event\UserInfoWithAttributes($this);
     $ue->setAttributes($attributes);
     Events::dispatch('on_user_attributes_saved', $ue);
 }