Пример #1
0
 /**
  * Applies a single filter
  * 
  * @param baseObjectFilter $filter
  */
 protected function applyPartnerScope(entryFilter $filter)
 {
     // depending on the partner_search_scope - alter the against_str
     $partner_search_scope = $filter->getPartnerSearchScope();
     if (baseObjectFilter::MATCH_KALTURA_NETWORK_AND_PRIVATE == $partner_search_scope) {
         // add nothing the the partner match
     } elseif ($partner_search_scope == null) {
         $this->add(entryPeer::DISPLAY_IN_SEARCH, mySearchUtils::DISPLAY_IN_SEARCH_KALTURA_NETWORK);
     } else {
         if (count($partner_search_scope) == 1) {
             $this->add(entryPeer::PARTNER_ID, $partner_search_scope, Criteria::EQUAL);
         } else {
             $this->add(entryPeer::PARTNER_ID, $partner_search_scope, Criteria::IN);
         }
     }
 }