当前位置: 首页>>代码示例>>PHP>>正文


PHP kuserPeer::getCriteriaFilter方法代码示例

本文整理汇总了PHP中kuserPeer::getCriteriaFilter方法的典型用法代码示例。如果您正苦于以下问题:PHP kuserPeer::getCriteriaFilter方法的具体用法?PHP kuserPeer::getCriteriaFilter怎么用?PHP kuserPeer::getCriteriaFilter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在kuserPeer的用法示例。


在下文中一共展示了kuserPeer::getCriteriaFilter方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getDefaultCriteriaFilter

 public static function getDefaultCriteriaFilter()
 {
     return kuserPeer::getCriteriaFilter();
 }
开发者ID:DBezemer,项目名称:server,代码行数:4,代码来源:kuserIndex.php

示例2: updatePuserIdsForEntries

 public static function updatePuserIdsForEntries($entries)
 {
     if (!$entries) {
         return;
     }
     // get the whole list of kuser_ids
     $partner_kuser_list = array();
     kuserPeer::getCriteriaFilter()->disable();
     PuserKuserPeer::getCriteriaFilter()->disable();
     foreach ($entries as &$entry) {
         $pid = $entry->getPartnerId();
         if (!isset($partner_kuser_list[$pid])) {
             $partner_kuser_ids = array();
         } else {
             $partner_kuser_ids = $partner_kuser_list[$pid];
         }
         //print_r ( $entry );
         $kuser_id = $entry->getKuserId();
         $partner_kuser_ids[$kuser_id] = $kuser_id;
         $partner_kuser_list[$pid] = $partner_kuser_ids;
     }
     // the kuser_id is unique across partners
     $kuser_list = array();
     $puser_id = null;
     foreach ($partner_kuser_list as $pid => $kuser_ids) {
         $puser_kuser_list = PuserKuserPeer::getPuserIdFromKuserIds($pid, $kuser_ids);
         // builf a map where the key is kuser_id for fast fetch
         foreach ($puser_kuser_list as $puser_kuser) {
             $kuser_id = $puser_kuser->getKuserId();
             $puser_id = $puser_kuser->getPuserId();
             $kuser_list[$kuser_id] = $puser_id;
         }
     }
     foreach ($entries as $entry) {
         $kuser_id = $entry->getKuserId();
         if (isset($kuser_list[$kuser_id])) {
             $puser_id = $kuser_list[$kuser_id];
         }
         if ($puser_id) {
             $entry->tempSetPuserId($puser_id);
         }
     }
     kuserPeer::getCriteriaFilter()->enable();
     PuserKuserPeer::getCriteriaFilter()->enable();
 }
开发者ID:richhl,项目名称:kalturaCE,代码行数:45,代码来源:myEntryUtils.class.php

示例3: getDefaultCriteriaFilter

 protected function getDefaultCriteriaFilter()
 {
     return kuserPeer::getCriteriaFilter();
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:4,代码来源:SphinxKuserCriteria.php

示例4: attachCriteriaFilter

 /**
  * the filterCriteria will filter out all the doSelect methods - ONLY if the filter is turned on.
  * IMPORTANT - the filter is turend on by default and when switched off - should be turned on again manually .
  * 
  * @param      Criteria $criteria The Criteria object used to build the SELECT statement.
  */
 protected static function attachCriteriaFilter(Criteria $criteria)
 {
     kuserPeer::getCriteriaFilter()->applyFilter($criteria);
 }
开发者ID:dozernz,项目名称:server,代码行数:10,代码来源:BasekuserPeer.php


注:本文中的kuserPeer::getCriteriaFilter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。