You are here

class KalturaAdminUserService in Kaltura 6.2

Hierarchy

Expanded class hierarchy of KalturaAdminUserService

File

kaltura_client/KalturaClient.php, line 4629

View source
class KalturaAdminUserService extends KalturaServiceBase {
  function __construct(KalturaClient $client) {
    parent::__construct($client);
  }
  function updatepassword($email, $password, $newEmail = "", $newPassword = "") {
    $kparams = array();
    $this->client
      ->addParam($kparams, "email", $email);
    $this->client
      ->addParam($kparams, "password", $password);
    $this->client
      ->addParam($kparams, "newEmail", $newEmail);
    $this->client
      ->addParam($kparams, "newPassword", $newPassword);
    $this->client
      ->queueServiceActionCall("adminuser", "updatepassword", $kparams);
    if ($this->client
      ->isMultiRequest()) {
      return null;
    }
    $resultObject = $this->client
      ->doQueue();
    $this->client
      ->throwExceptionIfError($resultObject);
    $this->client
      ->validateObjectType($resultObject, "KalturaAdminUser");
    return $resultObject;
  }
  function resetPassword($email) {
    $kparams = array();
    $this->client
      ->addParam($kparams, "email", $email);
    $this->client
      ->queueServiceActionCall("adminuser", "resetPassword", $kparams);
    if ($this->client
      ->isMultiRequest()) {
      return null;
    }
    $resultObject = $this->client
      ->doQueue();
    $this->client
      ->throwExceptionIfError($resultObject);
    $this->client
      ->validateObjectType($resultObject, "null");
    return $resultObject;
  }
  function login($email, $password) {
    $kparams = array();
    $this->client
      ->addParam($kparams, "email", $email);
    $this->client
      ->addParam($kparams, "password", $password);
    $this->client
      ->queueServiceActionCall("adminuser", "login", $kparams);
    if ($this->client
      ->isMultiRequest()) {
      return null;
    }
    $resultObject = $this->client
      ->doQueue();
    $this->client
      ->throwExceptionIfError($resultObject);
    $this->client
      ->validateObjectType($resultObject, "string");
    return $resultObject;
  }

}

Members