本文整理汇总了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);
}