本文整理匯總了PHP中KalturaFilter::fromObject方法的典型用法代碼示例。如果您正苦於以下問題:PHP KalturaFilter::fromObject方法的具體用法?PHP KalturaFilter::fromObject怎麽用?PHP KalturaFilter::fromObject使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類KalturaFilter
的用法示例。
在下文中一共展示了KalturaFilter::fromObject方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: fromObject
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);
}
示例2: doFromObject
public function doFromObject($dbData, KalturaDetachedResponseProfile $responseProfile = null)
{
/* @var $dbData kIndexJobData */
$filter = $dbData->getFilter();
$filterType = get_class($filter);
switch ($filterType) {
case 'entryFilter':
$this->filter = new KalturaBaseEntryFilter();
break;
case 'categoryFilter':
$this->filter = new KalturaCategoryFilter();
break;
case 'categoryEntryFilter':
$this->filter = new KalturaCategoryEntryFilter();
break;
case 'categoryKuserFilter':
$this->filter = new KalturaCategoryUserFilter();
break;
case 'kuserFilter':
$this->filter = new KalturaUserFilter();
break;
default:
$this->filter = KalturaPluginManager::loadObject('KalturaFilter', $filterType);
}
if ($this->filter) {
$this->filter->fromObject($filter);
}
parent::doFromObject($dbData, $responseProfile);
}
示例3: doFromObject
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());
}
}
示例4: doFromObject
/**
* @param ScheduledTaskProfile $srcObj
*/
public function doFromObject($srcObj, KalturaDetachedResponseProfile $responseProfile = null)
{
parent::doFromObject($srcObj, $responseProfile);
$this->objectTasks = KalturaObjectTaskArray::fromDbArray($srcObj->getObjectTasks());
$filterType = $srcObj->getObjectFilterApiType();
if (!class_exists($filterType)) {
KalturaLog::err(sprintf('Class %s not found, cannot initiate object filter instance', $filterType));
$this->objectFilter = new KalturaFilter();
} else {
$this->objectFilter = new $filterType();
}
$this->objectFilter->fromObject($srcObj->getObjectFilter());
}