コード例 #1
0
ファイル: KalturaMailJob.php プロジェクト: richhl/kalturaCE
 public function toObject($objectToFill = null, $propsToSkip = array())
 {
     parent::toObject($objectToFill, $propsToSkip);
     $objectToFill->setSubType($mailJob->mailType);
     return $objectToFill;
 }
コード例 #2
0
 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;
 }