예제 #1
0
 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;
 }