本文整理匯總了PHP中entryFilter::setCategoriesIdsMatchAnd方法的典型用法代碼示例。如果您正苦於以下問題:PHP entryFilter::setCategoriesIdsMatchAnd方法的具體用法?PHP entryFilter::setCategoriesIdsMatchAnd怎麽用?PHP entryFilter::setCategoriesIdsMatchAnd使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類entryFilter
的用法示例。
在下文中一共展示了entryFilter::setCategoriesIdsMatchAnd方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: reSetDirectEntriesCount
/**
* reset category's directEntriesCount by calculate it.
*/
public function reSetDirectEntriesCount()
{
$baseCriteria = KalturaCriteria::create(entryPeer::OM_CLASS);
$filter = new entryFilter();
$filter->setPartnerSearchScope(baseObjectFilter::MATCH_KALTURA_NETWORK_AND_PRIVATE);
$filter->setCategoriesIdsMatchAnd($this->getId());
$filter->setLimit(1);
$filter->attachToCriteria($baseCriteria);
$baseCriteria->applyFilters();
$count = $baseCriteria->getRecordsCount();
$this->setDirectEntriesCount($count);
}
示例2: addIndexEntryJob
protected function addIndexEntryJob($categoryId, $shouldUpdate = false)
{
$featureStatusToRemoveIndex = new kFeatureStatus();
$featureStatusToRemoveIndex->setType(IndexObjectType::ENTRY);
$featureStatusesToRemove = array();
$featureStatusesToRemove[] = $featureStatusToRemoveIndex;
$filter = new entryFilter();
$filter->setCategoriesIdsMatchAnd($categoryId);
$statusArr = array(entryStatus::BLOCKED, entryStatus::ERROR_CONVERTING, entryStatus::ERROR_IMPORTING, entryStatus::IMPORT, entryStatus::MODERATE, entryStatus::NO_CONTENT, entryStatus::PENDING, entryStatus::PRECONVERT, entryStatus::READY);
$filter->setStatusIn($statusArr);
//TODO - add batch job size after sharon commits her code.
kJobsManager::addIndexJob($this->getPartnerId(), IndexObjectType::ENTRY, $filter, $shouldUpdate, $featureStatusesToRemove);
}