. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ class Kaltura_Client_Type_OperationResource extends Kaltura_Client_Type_ContentResource { public function getKalturaObjectType() { return 'KalturaOperationResource'; } public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if(is_null($xml)) return; if(!empty($xml->resource)) $this->resource = Kaltura_Client_Client::unmarshalItem($xml->resource); if(empty($xml->operationAttributes)) $this->operationAttributes = array(); else $this->operationAttributes = Kaltura_Client_Client::unmarshalItem($xml->operationAttributes); if(count($xml->assetParamsId)) $this->assetParamsId = (int)$xml->assetParamsId; } /** * Only KalturaEntryResource and KalturaAssetResource are supported * * * @var Kaltura_Client_Type_ContentResource */ public $resource; /** * * * @var array of KalturaOperationAttributes */ public $operationAttributes; /** * ID of alternative asset params to be used instead of the system default flavor params * * * @var int */ public $assetParamsId = null; }