public function doFromObject($source_object, KalturaDetachedResponseProfile $responseProfile = null) { parent::doFromObject($source_object, $responseProfile); /* @var $source_object kBulkUploadFilterJobData */ $this->filter = null; switch (get_class($source_object->getFilter())) { case 'categoryEntryFilter': $this->filter = new KalturaCategoryEntryFilter(); break; case 'entryFilter': $this->filter = new KalturaBaseEntryFilter(); break; default: break; } if ($this->filter) { $this->filter->fromObject($source_object->getFilter()); } $this->templateObject = null; switch (get_class($source_object->getTemplateObject())) { case 'categoryEntry': $this->templateObject = new KalturaCategoryEntry(); break; default: break; } if ($this->templateObject) { $this->templateObject->fromObject($source_object->getTemplateObject()); } }
public function fromObject($dbData) { /* @var $dbData kCopyJobData */ $filter = $dbData->getFilter(); $filterType = get_class($filter); switch ($filterType) { case 'entryFilter': $this->filter = new KalturaBaseEntryFilter(); $this->templateObject = new KalturaBaseEntry(); break; case 'categoryFilter': $this->filter = new KalturaCategoryFilter(); $this->templateObject = new KalturaCategory(); break; case 'categoryEntryFilter': $this->filter = new KalturaCategoryEntryFilter(); $this->templateObject = new KalturaCategoryEntry(); break; case 'categoryKuserFilter': $this->filter = new KalturaCategoryUserFilter(); $this->templateObject = new KalturaCategoryUser(); break; default: $this->filter = KalturaPluginManager::loadObject('KalturaFilter', $filterType); } if ($this->filter) { $this->filter->fromObject($filter); } if ($this->templateObject) { $this->templateObject->fromObject($dbData->getTemplateObject()); } return parent::fromObject($dbData); }
public function toObject($dbObject = null, $skip = array()) { if (is_null($dbObject)) { $dbObject = new kObjectTask(); } return parent::toObject($dbObject, $skip); }
public function toObject($object = null, $skipProperties = array()) { if (!$object) { $object = new kFilterPager(); } return parent::toObject($object, $skipProperties); }
public function fromObject($sourceObject) { if (!$sourceObject) { return; } parent::fromObject($sourceObject); }
public function toObject($dbObject = null, $skip = array()) { if (!$dbObject) { $dbObject = new kFileSyncDescriptor(); } return parent::toObject($dbObject, $skip); }
public function doFromObject($source_object, KalturaDetachedResponseProfile $responseProfile = null) { parent::doFromObject($source_object, $responseProfile); if ($this->shouldGet('updateParams', $responseProfile)) { $this->updateParams = KalturaStringArray::fromStringArray($source_object->getUpdateParams()); } }
public function toObject($dbObject = null, $propsToSkip = array()) { if (!$dbObject) { $dbObject = new kLiveStreamPushPublishConfiguration(); } return parent::toObject($dbObject, $propsToSkip); }
/** * When reflecting an array, returns the type of the array as string * * @return string */ public function getArrayType() { if ($this->isArray()) { return $this->_instance->getType(); } return null; }
public function toObject($dbObject = null, $skip = array()) { if (is_null($dbObject)) { $dbObject = new UserLoginData(); } return parent::toObject($dbObject, $skip); }
public function toObject($object = null, $propertiesToSkip = array()) { if (is_null($object)) { $object = new kResponseProfileMapping(); } return parent::toObject($object, $propertiesToSkip); }
public function toObject($dbObject = null, $skip = array()) { if (is_null($dbObject)) { $dbObject = new kDistributionThumbDimensions(); } return parent::toObject($dbObject, $skip); }
public function toObject($dbData = null, $props_to_skip = array()) { if (is_null($dbData)) { $dbData = new kConvertCollectionFlavorData(); } return parent::toObject($dbData, $props_to_skip); }
public function toObject($objectToFill = null, $propsToSkip = array()) { if (is_null($objectToFill)) { $objectToFill = new kScope(); } return parent::toObject($objectToFill, $propsToSkip); }
public function toObject($dbObject = null, $skip = array()) { if (is_null($dbObject)) { return new kDistributionValidationError(); } return parent::toObject($dbObject, $skip); }
public function toObject($object_to_fill = null, $props_to_skip = array()) { if (is_null($object_to_fill)) { $object_to_fill = new kBatchHistoryData(); } return parent::toObject($object_to_fill, $props_to_skip); }
public function toObject($dbObject = null, $skip = array()) { if (is_null($dbObject)) { $dbObject = new KuserKgroup(); } return parent::toObject($dbObject, $skip); }
public function toObject($dbObject = null, $skip = array()) { if (is_null($dbObject)) { $dbObject = new kAssetDistributionRule(); } return parent::toObject($dbObject, $skip); }
public function toObject($dbObject = null, $propsToSkip = array()) { if (!$dbObject) { $dbObject = new kLiveEntryRecordingOptions(); } return parent::toObject($dbObject, $propsToSkip); }
public function toObject($object_to_fill = null, $props_to_skip = array()) { if (!$object_to_fill) { $object_to_fill = new kEntryReplacementOptions(); } return parent::toObject($object_to_fill, $props_to_skip); }
public function toObject($dbObject = null, $propsToSkip = array()) { if (!$dbObject) { $dbObject = new kQuiz(); } return parent::toObject($dbObject, $propsToSkip); }
/** * @param kAuditTrailInfo $dbAuditTrail * @param array $propsToSkip * @return kAuditTrailInfo */ public function toObject($auditTrailInfo = null, $propsToSkip = array()) { if (is_null($auditTrailInfo)) { $auditTrailInfo = new kAuditTrailInfo(); } return parent::toObject($auditTrailInfo, $propsToSkip); }
public function toObject($object_to_fill = null, $props_to_skip = array()) { if (is_null($object_to_fill)) { $object_to_fill = new kDistributionRemoteMediaFile(); } return parent::toObject($object_to_fill, $props_to_skip); }
public function toObject($object_to_fill = null, $props_to_skip = array()) { if (is_null($object_to_fill)) { $object_to_fill = new kExclusiveLockKey(); } return parent::toObject($object_to_fill, $props_to_skip); }
public function toObject($dbObject = null, $skip = array()) { if (!$dbObject) { $dbObject = new kRule(); } return parent::toObject($dbObject, $skip); }
public function toObject($object_to_fill = null, $props_to_skip = array()) { if (!$object_to_fill) { $object_to_fill = new KalturaLike(); } return parent::toObject($object_to_fill, $props_to_skip); }
public function toObject($dbObject = null, $skip = array()) { if (is_null($dbObject)) { $dbObject = new DropFolderFileHandlerConfig(); } parent::toObject($dbObject, $skip); return $dbObject; }
public function toObject($dbObject = null, $skip = array()) { if (is_null($dbObject)) { $dbObject = new UserRole(); } parent::toObject($dbObject, $skip); return $dbObject; }
public function toObject($dbObject = null, $skip = array()) { if (is_null($dbObject)) { $dbObject = new PermissionItem(); } parent::toObject($dbObject, $skip); return $dbObject; }
public function validateForUpdate($sourceObject, $propertiesToSkip = array()) { parent::validateForUpdate($sourceObject, $propertiesToSkip); if ($this->partnerId !== null) { $this->validatePartnerId(); } $this->validatePropertyMinLength("name", 1, true); }