public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->service = (string) $xml->service;
     $this->action = (string) $xml->action;
 }
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->object = (string) $xml->object;
     $this->parameter = (string) $xml->parameter;
     $this->action = (string) $xml->action;
 }
 /**
  * Updates an existing permission item object.
  * 	 This action is available only to Kaltura system administrators.
  * 	 
  * 
  * @return \Kaltura\Client\Type\PermissionItem
  */
 function update($permissionItemId, \Kaltura\Client\Type\PermissionItem $permissionItem)
 {
     $kparams = array();
     $this->client->addParam($kparams, "permissionItemId", $permissionItemId);
     $this->client->addParam($kparams, "permissionItem", $permissionItem->toParams());
     $this->client->queueServiceActionCall("permissionitem", "update", "KalturaPermissionItem", $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, "KalturaPermissionItem");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\PermissionItem");
     return $resultObject;
 }