. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ class Kaltura_Client_Type_BulkUploadJobData extends Kaltura_Client_Type_JobData { public function getKalturaObjectType() { return 'KalturaBulkUploadJobData'; } public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if(is_null($xml)) return; $this->userId = (string)$xml->userId; $this->uploadedBy = (string)$xml->uploadedBy; if(count($xml->conversionProfileId)) $this->conversionProfileId = (int)$xml->conversionProfileId; $this->resultsFileLocalPath = (string)$xml->resultsFileLocalPath; $this->resultsFileUrl = (string)$xml->resultsFileUrl; if(count($xml->numOfEntries)) $this->numOfEntries = (int)$xml->numOfEntries; if(count($xml->numOfObjects)) $this->numOfObjects = (int)$xml->numOfObjects; $this->filePath = (string)$xml->filePath; $this->bulkUploadObjectType = (string)$xml->bulkUploadObjectType; $this->fileName = (string)$xml->fileName; if(!empty($xml->objectData)) $this->objectData = Kaltura_Client_Client::unmarshalItem($xml->objectData); $this->type = (string)$xml->type; $this->emailRecipients = (string)$xml->emailRecipients; if(count($xml->numOfErrorObjects)) $this->numOfErrorObjects = (int)$xml->numOfErrorObjects; } /** * * * @var string * @readonly */ public $userId = null; /** * The screen name of the user * * * @var string * @readonly */ public $uploadedBy = null; /** * Selected profile id for all bulk entries * * * @var int * @readonly */ public $conversionProfileId = null; /** * Created by the API * * * @var string * @readonly */ public $resultsFileLocalPath = null; /** * Created by the API * * * @var string * @readonly */ public $resultsFileUrl = null; /** * Number of created entries * * * @var int * @readonly */ public $numOfEntries = null; /** * Number of created objects * * * @var int * @readonly */ public $numOfObjects = null; /** * The bulk upload file path * * * @var string * @readonly */ public $filePath = null; /** * Type of object for bulk upload * * * @var Kaltura_Client_Enum_BulkUploadObjectType * @readonly */ public $bulkUploadObjectType = null; /** * Friendly name of the file, used to be recognized later in the logs. * * * @var string */ public $fileName = null; /** * Data pertaining to the objects being uploaded * * * @var Kaltura_Client_Type_BulkUploadObjectData * @readonly */ public $objectData; /** * Type of bulk upload * * * @var Kaltura_Client_Enum_BulkUploadType * @readonly */ public $type = null; /** * Recipients of the email for bulk upload success/failure * * * @var string */ public $emailRecipients = null; /** * Number of objects that finished on error status * * * @var int */ public $numOfErrorObjects = null; }