You are here

function KalturaPartnerService::register in Kaltura 6.2

File

kaltura_client/KalturaClient.php, line 4558

Class

KalturaPartnerService

Code

function register(KalturaPartner $partner, $cmsPassword = "") {
  $kparams = array();
  $this->client
    ->addParam($kparams, "partner", $partner
    ->toParams());
  $this->client
    ->addParam($kparams, "cmsPassword", $cmsPassword);
  $this->client
    ->queueServiceActionCall("partner", "register", $kparams);
  if ($this->client
    ->isMultiRequest()) {
    return null;
  }
  $resultObject = $this->client
    ->doQueue();
  $this->client
    ->throwExceptionIfError($resultObject);
  $this->client
    ->validateObjectType($resultObject, "KalturaPartner");
  return $resultObject;
}