當前位置: 首頁>>代碼示例>>PHP>>正文


PHP OW_Example::andFieldInArray方法代碼示例

本文整理匯總了PHP中OW_Example::andFieldInArray方法的典型用法代碼示例。如果您正苦於以下問題:PHP OW_Example::andFieldInArray方法的具體用法?PHP OW_Example::andFieldInArray怎麽用?PHP OW_Example::andFieldInArray使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在OW_Example的用法示例。


在下文中一共展示了OW_Example::andFieldInArray方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: findActionPriceForAccountTypeList

 /**
  * @param $actionId
  * @param $accTypeIdList
  * @return array
  */
 public function findActionPriceForAccountTypeList($actionId, $accTypeIdList)
 {
     $example = new OW_Example();
     $example->andFieldEqual('actionId', $actionId);
     $example->andFieldInArray('accountTypeId', $accTypeIdList);
     return $this->findListByExample($example);
 }
開發者ID:hardikamutech,項目名稱:loov,代碼行數:12,代碼來源:action_price_dao.php

示例2: findByUserIdList

 public function findByUserIdList(array $userIdList)
 {
     if (empty($userIdList)) {
         return array();
     }
     $example = new OW_Example();
     $example->andFieldInArray(self::USER_ID, $userIdList);
     return $this->findListByExample($example);
 }
開發者ID:hardikamutech,項目名稱:loov,代碼行數:9,代碼來源:avatar_dao.php

示例3: getBalanceForUserList

 public function getBalanceForUserList($ids)
 {
     if (!count($ids)) {
         return array();
     }
     $ids = array_unique($ids);
     $example = new OW_Example();
     $example->andFieldInArray('userId', $ids);
     return $this->findListByExample($example);
 }
開發者ID:vazahat,項目名稱:dudex,代碼行數:10,代碼來源:balance_dao.php

示例4: getCompletedFeaturesCount

 public function getCompletedFeaturesCount($userId, array $features)
 {
     if (empty($userId) || count($features) === 0) {
         return NULL;
     }
     $perDay = OW::getConfig()->getValue('profileprogressbar', 'per_day');
     $example = new OW_Example();
     $example->andFieldEqual(self::USER_ID, $userId);
     $example->andFieldInArray(self::ENTITY_TYPE, $features);
     $example->andFieldBetween(self::TIME_STAMP, strtotime("-{$perDay} day"), time());
     return $this->countByExample($example);
 }
開發者ID:vazahat,項目名稱:dudex,代碼行數:12,代碼來源:activity_log_dao.php

示例5: findAccountTypeByNameList

 public function findAccountTypeByNameList(array $accountTypeNameList)
 {
     if ($accountTypeNameList === null || !is_array($accountTypeNameList) || count($accountTypeNameList) === 0) {
         return array();
     }
     $example = new OW_Example();
     $example->andFieldInArray('name', $accountTypeNameList);
     $example->setOrder('sortOrder');
     return $this->findListByExample($example);
 }
開發者ID:ZyXelP,項目名稱:oxwall,代碼行數:10,代碼來源:question_account_type_dao.php

示例6: findBlockedList

 public function findBlockedList($userId, $userIdList)
 {
     $example = new OW_Example();
     $example->andFieldEqual(self::USER_ID, (int) $userId);
     $example->andFieldInArray(self::BLOCKED_USER_ID, $userIdList);
     return $this->findListByExample($example, BOL_UserBlockDao::CACHE_LIFE_TIME, array(BOL_UserBlockDao::CACHE_TAG_BLOCKED_USER));
 }
開發者ID:vBulleteen,項目名稱:oxwall,代碼行數:7,代碼來源:user_block_dao.php

示例7: findIdListByGroupIds

 /**
  * Returns topic id list
  * 
  * @param array $groupIds
  * @return array 
  */
 public function findIdListByGroupIds($groupIds)
 {
     $example = new OW_Example();
     $example->andFieldInArray('groupId', $groupIds);
     $query = "\n    \tSELECT `id` FROM `" . $this->getTableName() . "`\n    \t" . $example;
     return $this->dbo->queryForColumnList($query);
 }
開發者ID:jorgemunoz8807,項目名稱:havanabook,代碼行數:13,代碼來源:topic_dao.php

示例8: findGuestsByGuestIds

 public function findGuestsByGuestIds($userId, $guestIds)
 {
     if (empty($guestIds)) {
         return array();
     }
     $example = new OW_Example();
     $example->andFieldEqual("userId", $userId);
     $example->andFieldInArray("guestId", $guestIds);
     $example->setOrder("visitTimestamp DESC");
     return $this->findListByExample($example);
 }
開發者ID:hardikamutech,項目名稱:hammu,代碼行數:11,代碼來源:hammu_dao.php

示例9: cancel

 /**
  * Cancel friendship
  *
  * @param integer $requesterId
  * @param integer $userId
  */
 public function cancel($requesterId, $userId)
 {
     $ex = new OW_Example();
     $ex->andFieldInArray('userId', array($userId, $requesterId))->andFieldInArray('friendId', array($userId, $requesterId));
     $this->deleteByExample($ex);
 }
開發者ID:tammyrocks,項目名稱:friends,代碼行數:12,代碼來源:friendship_dao.php

示例10: findByUrlList

 /**
  * @param array $urlList
  * @return array
  */
 public function findByUrlList(array $urlList)
 {
     if (empty($urlList)) {
         return array();
     }
     $urlList = array_unique($urlList);
     $example = new OW_Example();
     $example->andFieldInArray(self::URL, $urlList);
     return $this->findListByExample($example);
 }
開發者ID:vazahat,項目名稱:dudex,代碼行數:14,代碼來源:sitemap_page_dao.php

示例11: findHiddenSections

 public function findHiddenSections()
 {
     $example = new OW_Example();
     $example->andFieldInArray('isHidden', 1);
     return $this->findListByExample($example);
 }
開發者ID:vBulleteen,項目名稱:oxwall,代碼行數:6,代碼來源:question_section_dao.php

示例12: findFirstIdForRoles

 /**
  * @param $actionId
  * @param $roles
  * @throws InvalidArgumentException
  * @return
  *
  */
 public function findFirstIdForRoles($actionId, $roles)
 {
     if ($actionId === null || (int) $actionId < 1) {
         throw new InvalidArgumentException('actionId must not be null');
     }
     if ($roles === null || count($roles) < 1) {
         return null;
     }
     $ex = new OW_Example();
     $ex->andFieldEqual('actionId', $actionId);
     $ex->andFieldInArray('roleId', $roles);
     $ex->setLimitClause(1, 1);
     return $this->findIdByExample($ex);
 }
開發者ID:vazahat,項目名稱:dudex,代碼行數:21,代碼來源:authorization_permission_dao.php

示例13: findTagsByLabel

 /**
  * Returns dto list for provided tag labels.
  *
  * @param array<string>$labels
  * @return array
  */
 public function findTagsByLabel($labels)
 {
     $example = new OW_Example();
     $example->andFieldInArray(self::LABEL, $labels);
     return $this->findListByExample($example);
 }
開發者ID:vazahat,項目名稱:dudex,代碼行數:12,代碼來源:tag_dao.php

示例14: findByActionIds

 public function findByActionIds($actionIds)
 {
     if (empty($actionIds)) {
         return array();
     }
     $example = new OW_Example();
     $example->andFieldInArray('actionId', $actionIds);
     return $this->findListByExample($example);
 }
開發者ID:vazahat,項目名稱:dudex,代碼行數:9,代碼來源:activity_dao.php

示例15: findListByQuestionList

 public function findListByQuestionList($questionList)
 {
     $example = new OW_Example();
     $example->andFieldInArray('question', $questionList);
     return $this->findListByExample($example);
 }
開發者ID:vazahat,項目名稱:dudex,代碼行數:6,代碼來源:field_dao.php


注:本文中的OW_Example::andFieldInArray方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。