You are here

function KalturaClient::addUser in Kaltura 5

Same name and namespace in other branches
  1. 6 kaltura_client/kaltura_client.php \KalturaClient::addUser()

File

kaltura_client/kaltura_client.php, line 712

Class

KalturaClient

Code

function addUser($kalturaSessionUser, $userId, $user) {
  $params = array();
  $params["user_id"] = $userId;
  $this
    ->addOptionalParam($params, "user_screenName", $user->screenName);
  $this
    ->addOptionalParam($params, "user_fullName", $user->fullName);
  $this
    ->addOptionalParam($params, "user_email", $user->email);
  $this
    ->addOptionalParam($params, "user_dateOfBirth", $user->dateOfBirth);
  $this
    ->addOptionalParam($params, "user_aboutMe", $user->aboutMe);
  $this
    ->addOptionalParam($params, "user_tags", $user->tags);
  $this
    ->addOptionalParam($params, "user_gender", $user->gender);
  $this
    ->addOptionalParam($params, "user_country", $user->country);
  $this
    ->addOptionalParam($params, "user_state", $user->state);
  $this
    ->addOptionalParam($params, "user_city", $user->city);
  $this
    ->addOptionalParam($params, "user_zip", $user->zip);
  $this
    ->addOptionalParam($params, "user_urlList", $user->urlList);
  $this
    ->addOptionalParam($params, "user_networkHighschool", $user->networkHighschool);
  $this
    ->addOptionalParam($params, "user_networkCollege", $user->networkCollege);
  $this
    ->addOptionalParam($params, "user_partnerData", $user->partnerData);
  $result = $this
    ->hit("adduser", $kalturaSessionUser, $params);
  return $result;
}