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


PHP OW_Example::andFieldNotInArray方法代码示例

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


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

示例1: findPlanList

 public function findPlanList($exclude)
 {
     $example = new OW_Example();
     if (!empty($exclude)) {
         $example->andFieldNotInArray('id', $exclude);
     }
     return $this->findListByExample($example);
 }
开发者ID:hardikamutech,项目名称:loov,代码行数:8,代码来源:membership_plan_dao.php

示例2: getInvitationByUserId

 /**
  * get All invitations with userId
  * 
  * @param OW_Example
  * 
  * @return array YNCONTACTIMPORTER_BOL_Invitation
  */
 public function getInvitationByUserId($params = array())
 {
     $example = new OW_Example();
     if (isset($params['count']) && $params['count']) {
         $example->setLimitClause($params['first'], $params['count']);
     }
     if (isset($params['userId'])) {
         $example->andFieldEqual('userId', $params['userId']);
     }
     if (isset($params['provider'])) {
         $example->andFieldEqual('provider', $params['provider']);
     } else {
         $example->andFieldEqual('isUsed', 0);
     }
     if (isset($params['userId']) && empty($params['provider'])) {
         // check queues
         $emails = YNCONTACTIMPORTER_BOL_PendingService::getInstance()->getAllPendingEmailsByUserId(array('userId' => $params['userId']));
         $socials = YNSOCIALBRIDGE_BOL_QueueService::getInstance()->getQueuesByUserId(array('userId' => $params['userId'], 'type' => 'sendInvite'));
         $friendIds = array();
         foreach ($emails as $email) {
             $friendIds[] = $email['recipientEmail'];
         }
         foreach ($socials as $social) {
             $arr_id = $arr = explode('/', $social['id']);
             $friendIds[] = $arr_id[0];
         }
         if ($friendIds) {
             $example->andFieldNotInArray('friendId', $friendIds);
         }
     }
     if (isset($params['search']) && $params['search']) {
         $example->andFieldLike('friendId', "%" . $params['search'] . "%");
     }
     $example->setOrder("`sentTime` DESC");
     return $this->findListByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:43,代码来源:invitation_dao.php

示例3: getUserIdList

 /**
  * Return search result item count
  *
  * @param int $listId
  * @param int $first
  * @param int $count
  * return array
  */
 public function getUserIdList($listId, $first, $count, $excludeList = array())
 {
     $example = new OW_Example();
     $example->andFieldEqual('searchId', (int) $listId);
     $example->setOrder(' sortOrder ');
     $example->setLimitClause($first, $count);
     if (!empty($excludeList)) {
         $example->andFieldNotInArray('userId', $excludeList);
     }
     $results = BOL_SearchResultDao::getInstance()->findListByExample($example);
     $userIdList = array();
     foreach ($results as $result) {
         $userIdList[] = $result->userId;
     }
     return $userIdList;
 }
开发者ID:hardikamutech,项目名称:loov,代码行数:24,代码来源:search_dao.php

示例4: findPhotoListByUploadKey

 public function findPhotoListByUploadKey($uploadKey, $exclude, $status = null)
 {
     $example = new OW_Example();
     $example->andFieldEqual('uploadKey', $uploadKey);
     if ($status !== null) {
         $example->andFieldEqual('status', $status);
     }
     if ($exclude && is_array($exclude)) {
         $example->andFieldNotInArray('id', $exclude);
     }
     $example->setOrder('`id` DESC');
     return $this->findListByExample($example);
 }
开发者ID:hardikamutech,项目名称:loov,代码行数:13,代码来源:photo_dao.php

示例5: getUserAlbumList

 /**
  * Get the list of user albums
  *
  * @param int $userId
  * @param int $page
  * @param int $limit
  * @return array of PHOTO_BOL_PhotoAlbum
  */
 public function getUserAlbumList($userId, $page, $limit, $exclude)
 {
     $first = ($page - 1) * $limit;
     $example = new OW_Example();
     $example->andFieldEqual('userId', $userId);
     if ($exclude) {
         $example->andFieldNotInArray('id', $exclude);
     }
     $example->setLimitClause($first, $limit);
     return $this->findListByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:19,代码来源:photo_album_dao.php

示例6: findInvitationCount

 public function findInvitationCount($userId, $viewed = null, $exclude = null)
 {
     $example = new OW_Example();
     $example->andFieldEqual('userId', $userId);
     if ($viewed !== null) {
         $example->andFieldEqual('viewed', (int) (bool) $viewed);
     }
     if ($exclude) {
         $example->andFieldNotInArray('id', $exclude);
     }
     return $this->countByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:12,代码来源:invitation_dao.php

示例7: findPhotoListByUploadKey

 public function findPhotoListByUploadKey($uploadKey, $exclude)
 {
     $example = new OW_Example();
     $example->andFieldEqual('uploadKey', $uploadKey);
     if ($exclude && is_array($exclude)) {
         $example->andFieldNotInArray('id', $exclude);
     }
     $example->setOrder('`addDatetime` DESC');
     return $this->findListByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:10,代码来源:photo_dao.php


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