Example #1
0
 public function delete($akID = null)
 {
     $key = UserKey::getByID($akID);
     $this->executeDelete($key, \URL::to('/dashboard/users/attributes', 'view'));
 }
Example #2
0
 public function updateUserField($key, $value)
 {
     $u = new User();
     $ui = UserInfo::getByID($u->getUserID());
     if ($ui) {
         $field = AttributeUserKey::getByID($key);
         $ui->setAttribute($field, $value);
     }
 }