1<?php 2// =================================================================================================== 3// _ __ _ _ 4// | |/ /__ _| | |_ _ _ _ _ __ _ 5// | ' </ _` | | _| || | '_/ _` | 6// |_|\_\__,_|_|\__|\_,_|_| \__,_| 7// 8// This file is part of the Kaltura Collaborative Media Suite which allows users 9// to do with audio, video, and animation what Wiki platfroms allow them to do with 10// text. 11// 12// Copyright (C) 2006-2017 Kaltura Inc. 13// 14// This program is free software: you can redistribute it and/or modify 15// it under the terms of the GNU Affero General Public License as 16// published by the Free Software Foundation, either version 3 of the 17// License, or (at your option) any later version. 18// 19// This program is distributed in the hope that it will be useful, 20// but WITHOUT ANY WARRANTY; without even the implied warranty of 21// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22// GNU Affero General Public License for more details. 23// 24// You should have received a copy of the GNU Affero General Public License 25// along with this program. If not, see <http://www.gnu.org/licenses/>. 26// 27// @ignore 28// =================================================================================================== 29 30/** 31 * @namespace 32 */ 33namespace Kaltura\Client\Type; 34 35/** 36 * @package Kaltura 37 * @subpackage Client 38 */ 39class ConvartableJobData extends \Kaltura\Client\Type\JobData 40{ 41 public function getKalturaObjectType() 42 { 43 return 'KalturaConvartableJobData'; 44 } 45 46 public function __construct(\SimpleXMLElement $xml = null) 47 { 48 parent::__construct($xml); 49 50 if(is_null($xml)) 51 return; 52 53 if(count($xml->srcFileSyncLocalPath)) 54 $this->srcFileSyncLocalPath = (string)$xml->srcFileSyncLocalPath; 55 if(count($xml->actualSrcFileSyncLocalPath)) 56 $this->actualSrcFileSyncLocalPath = (string)$xml->actualSrcFileSyncLocalPath; 57 if(count($xml->srcFileSyncRemoteUrl)) 58 $this->srcFileSyncRemoteUrl = (string)$xml->srcFileSyncRemoteUrl; 59 if(count($xml->srcFileSyncs)) 60 { 61 if(empty($xml->srcFileSyncs)) 62 $this->srcFileSyncs = array(); 63 else 64 $this->srcFileSyncs = \Kaltura\Client\ParseUtils::unmarshalArray($xml->srcFileSyncs, "KalturaSourceFileSyncDescriptor"); 65 } 66 if(count($xml->engineVersion)) 67 $this->engineVersion = (int)$xml->engineVersion; 68 if(count($xml->flavorParamsOutputId)) 69 $this->flavorParamsOutputId = (int)$xml->flavorParamsOutputId; 70 if(count($xml->flavorParamsOutput) && !empty($xml->flavorParamsOutput)) 71 $this->flavorParamsOutput = \Kaltura\Client\ParseUtils::unmarshalObject($xml->flavorParamsOutput, "KalturaFlavorParamsOutput"); 72 if(count($xml->mediaInfoId)) 73 $this->mediaInfoId = (int)$xml->mediaInfoId; 74 if(count($xml->currentOperationSet)) 75 $this->currentOperationSet = (int)$xml->currentOperationSet; 76 if(count($xml->currentOperationIndex)) 77 $this->currentOperationIndex = (int)$xml->currentOperationIndex; 78 if(count($xml->pluginData)) 79 { 80 if(empty($xml->pluginData)) 81 $this->pluginData = array(); 82 else 83 $this->pluginData = \Kaltura\Client\ParseUtils::unmarshalArray($xml->pluginData, "KalturaKeyValue"); 84 } 85 } 86 /** 87 * 88 * @var string 89 */ 90 public $srcFileSyncLocalPath = null; 91 92 /** 93 * The translated path as used by the scheduler 94 * @var string 95 */ 96 public $actualSrcFileSyncLocalPath = null; 97 98 /** 99 * 100 * @var string 101 */ 102 public $srcFileSyncRemoteUrl = null; 103 104 /** 105 * 106 * @var array<KalturaSourceFileSyncDescriptor> 107 */ 108 public $srcFileSyncs; 109 110 /** 111 * 112 * @var int 113 */ 114 public $engineVersion = null; 115 116 /** 117 * 118 * @var int 119 */ 120 public $flavorParamsOutputId = null; 121 122 /** 123 * 124 * @var \Kaltura\Client\Type\FlavorParamsOutput 125 */ 126 public $flavorParamsOutput; 127 128 /** 129 * 130 * @var int 131 */ 132 public $mediaInfoId = null; 133 134 /** 135 * 136 * @var int 137 */ 138 public $currentOperationSet = null; 139 140 /** 141 * 142 * @var int 143 */ 144 public $currentOperationIndex = null; 145 146 /** 147 * 148 * @var array<KalturaKeyValue> 149 */ 150 public $pluginData; 151 152} 153