public function toObject($objectToFill = null, $propsToSkip = array()) { parent::toObject($objectToFill, $propsToSkip); $objectToFill->setSubType($mailJob->mailType); return $objectToFill; }
public function toNotification() { $dbNotification = new notification(); return parent::toObject($dbNotification); }
public function toObject($dbBatchJob = null, $props_to_skip = array()) { if (is_null($dbBatchJob)) { $dbBatchJob = new BatchJob(); } $dbBatchJob = parent::toObject($dbBatchJob); if (!is_null($this->data)) { $this->toData($dbBatchJob); } if (!is_null($this->jobSubType) && $this->data instanceof KalturaJobData) { $dbBatchJob->setJobSubType($this->data->toSubType($this->jobSubType)); } return $dbBatchJob; }