本文整理匯總了PHP中entryFilter::getAdvancedSearch方法的典型用法代碼示例。如果您正苦於以下問題:PHP entryFilter::getAdvancedSearch方法的具體用法?PHP entryFilter::getAdvancedSearch怎麽用?PHP entryFilter::getAdvancedSearch使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類entryFilter
的用法示例。
在下文中一共展示了entryFilter::getAdvancedSearch方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: addEntryAdvancedSearchFilter
private function addEntryAdvancedSearchFilter(KalturaCaptionAssetItemFilter $captionAssetItemFilter, entryFilter $entryCoreFilter)
{
//create advanced filter on entry caption
$entryCaptionAdvancedSearch = new EntryCaptionAssetSearchFilter();
$entryCaptionAdvancedSearch->setContentLike($captionAssetItemFilter->contentLike);
$entryCaptionAdvancedSearch->setContentMultiLikeAnd($captionAssetItemFilter->contentMultiLikeAnd);
$entryCaptionAdvancedSearch->setContentMultiLikeOr($captionAssetItemFilter->contentMultiLikeOr);
$inputAdvancedSearch = $entryCoreFilter->getAdvancedSearch();
if (!is_null($inputAdvancedSearch)) {
$advancedSearchOp = new AdvancedSearchFilterOperator();
$advancedSearchOp->setType(AdvancedSearchFilterOperator::SEARCH_AND);
$advancedSearchOp->setItems(array($inputAdvancedSearch, $entryCaptionAdvancedSearch));
$entryCoreFilter->setAdvancedSearch($advancedSearchOp);
} else {
$entryCoreFilter->setAdvancedSearch($entryCaptionAdvancedSearch);
}
}
示例2: applyFilter
/**
* Applies a single filter
*
* @param baseObjectFilter $filter
*/
protected function applyFilter(entryFilter $filter)
{
$advancedSearch = $filter->getAdvancedSearch();
if (is_object($advancedSearch) && $advancedSearch instanceof AdvancedSearchFilterItem) {
KalturaLog::debug('Apply advanced filter [' . get_class($advancedSearch) . ']');
$advancedSearch->apply($filter, $this, $this->whereClause, $this->whereClause);
}
$this->applyFilterFields($filter);
$this->applyPartnerScope($filter);
// attach all unhandled fields
$filter->attachToFinalCriteria($this);
}