. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ class Kaltura_Client_Type_BulkUploadResult extends Kaltura_Client_ObjectBase { public function getKalturaObjectType() { return 'KalturaBulkUploadResult'; } public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if(is_null($xml)) return; if(count($xml->id)) $this->id = (int)$xml->id; if(count($xml->bulkUploadJobId)) $this->bulkUploadJobId = (int)$xml->bulkUploadJobId; if(count($xml->lineIndex)) $this->lineIndex = (int)$xml->lineIndex; if(count($xml->partnerId)) $this->partnerId = (int)$xml->partnerId; $this->status = (string)$xml->status; $this->action = (string)$xml->action; $this->objectId = (string)$xml->objectId; if(count($xml->objectStatus)) $this->objectStatus = (int)$xml->objectStatus; $this->bulkUploadResultObjectType = (string)$xml->bulkUploadResultObjectType; $this->rowData = (string)$xml->rowData; $this->partnerData = (string)$xml->partnerData; $this->objectErrorDescription = (string)$xml->objectErrorDescription; if(empty($xml->pluginsData)) $this->pluginsData = array(); else $this->pluginsData = Kaltura_Client_Client::unmarshalItem($xml->pluginsData); $this->errorDescription = (string)$xml->errorDescription; $this->errorCode = (string)$xml->errorCode; if(count($xml->errorType)) $this->errorType = (int)$xml->errorType; } /** * The id of the result * * * @var int * @readonly */ public $id = null; /** * The id of the parent job * * * @var int */ public $bulkUploadJobId = null; /** * The index of the line in the CSV * * * @var int */ public $lineIndex = null; /** * * * @var int */ public $partnerId = null; /** * * * @var Kaltura_Client_Enum_BulkUploadResultStatus */ public $status = null; /** * * * @var Kaltura_Client_Enum_BulkUploadAction */ public $action = null; /** * * * @var string */ public $objectId = null; /** * * * @var int */ public $objectStatus = null; /** * * * @var Kaltura_Client_Enum_BulkUploadResultObjectType */ public $bulkUploadResultObjectType = null; /** * The data as recieved in the csv * * * @var string */ public $rowData = null; /** * * * @var string */ public $partnerData = null; /** * * * @var string */ public $objectErrorDescription = null; /** * * * @var array of KalturaBulkUploadPluginData */ public $pluginsData; /** * * * @var string */ public $errorDescription = null; /** * * * @var string */ public $errorCode = null; /** * * * @var int */ public $errorType = null; }