Exemple #1
0
 /**
  * {@inheritDoc}
  * @see IPluggableUserProfile::setParam()
  */
 public function setParam($key, $value)
 {
     $datas = $this->userProfileDatas;
     foreach ($datas as $datum) {
         /* @var $datum UserProfileData */
         if ($datum->datakey === $key) {
             $datum->payload = $value;
             return $datum->save();
         }
     }
     $data = new UserProfileData();
     $data->user_profile_id = $this->user_profile_id;
     $data->datakey = $key;
     $data->payload = $value;
     return $data->save();
 }