Esempio n. 1
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
 }
Esempio n. 2
0
 /**
  * Updates an existing user object.
  * 	 You can also use this action to update the userId.
  * 	 
  * 
  * @return \Kaltura\Client\Type\User
  */
 function update($userId, \Kaltura\Client\Type\User $user)
 {
     $kparams = array();
     $this->client->addParam($kparams, "userId", $userId);
     $this->client->addParam($kparams, "user", $user->toParams());
     $this->client->queueServiceActionCall("user", "update", "KalturaUser", $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultXml = $this->client->doQueue();
     $resultXmlObject = new \SimpleXMLElement($resultXml);
     \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result);
     $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaUser");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\User");
     return $resultObject;
 }