Пример #1
0
 public function toObject($dbData = null, $props_to_skip = array())
 {
     if (is_null($dbData)) {
         $dbData = new Scheduler();
     }
     if (!is_null($this->statuses) && $this->statuses instanceof KalturaSchedulerStatusArray) {
         $dbData->setStatuses($this->statuses->toValuesArray());
     }
     return parent::toObject($dbData, $props_to_skip);
 }
Пример #2
0
 public function doFromObject($dbData, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($dbData, $responseProfile);
     $statusesArray = $dbData->getStatuses();
     if (is_array($statusesArray)) {
         $this->statuses = KalturaSchedulerStatusArray::fromValuesArray($statusesArray, $this->schedulerId, $this->schedulerConfiguredId, $this->id, $this->configuredId, $this->type);
     }
     $this->configs = KalturaSchedulerConfigArray::fromDbArray($dbData->getConfigs());
     $this->lockedJobs = KalturaBatchJobArray::fromBatchJobArray($dbData->getLockedJobs());
     return $this;
 }
 public function fromObject($dbData)
 {
     parent::fromObject($dbData);
     $statusesArray = $dbData->getStatuses();
     if (is_array($statusesArray)) {
         $this->statuses = KalturaSchedulerStatusArray::fromValuesArray($statusesArray, $this->schedulerId, $this->schedulerConfiguredId, $this->id, $this->configuredId, $this->type);
     }
     $this->configs = KalturaSchedulerConfigArray::fromSchedulerConfigArray($dbData->getConfigs());
     $this->lockedJobs = KalturaBatchJobArray::fromBatchJobArray($dbData->getLockedJobs());
     return $this;
 }