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


PHP OW_Example::setLimitClause方法代码示例

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


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

示例1: findList

 public function findList($count)
 {
     $example = new OW_Example();
     $example->setLimitClause(0, $count);
     $example->setOrder('timeStamp DESC');
     return $this->findListByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:7,代码来源:send_queue_dao.php

示例2: getTopInviters

 /**
  * get top inviters
  * @param array $params
  * @return array YNCONTACTIMPORTER_BOL_Statistic
  */
 public function getTopInviters($params = array())
 {
     $example = new OW_Example();
     $example->setLimitClause(0, 10);
     $example->setOrder("`totalSent` DESC");
     return $this->findListByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:12,代码来源:statistic_dao.php

示例3: findByUserId

 /**
  * Finds user trial plan usage by user Id
  * 
  * @param int $userId
  * @return MEMBERSHIP_BOL_MembershipUserTrial
  */
 public function findByUserId($userId)
 {
     $example = new OW_Example();
     $example->andFieldEqual('userId', $userId);
     $example->setLimitClause(0, 1);
     return $this->findObjectByExample($example);
 }
开发者ID:hardikamutech,项目名称:loov,代码行数:13,代码来源:membership_user_trial_dao.php

示例4: find

 public function find($type, $entityId, $userId)
 {
     $ex = new OW_Example();
     $ex->andFieldEqual('type', $type)->andFieldEqual('entityId', $entityId)->andFieldEqual('userId', $userId);
     $ex->setLimitClause(0, 1);
     return $this->findObjectByExample($ex);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:7,代码来源:flag_dao.php

示例5: findByUserId

 public function findByUserId($userId, $first, $count)
 {
     $example = new OW_Example();
     $example->andFieldEqual(self::USER_ID, (int) $userId);
     $example->setLimitClause($first, $count);
     return $this->findListByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:7,代码来源:event_user_dao.php

示例6: getId

 public function getId($moderatorId, $groupId)
 {
     $ex = new OW_Example();
     $ex->andFieldEqual('moderatorId', $moderatorId);
     $ex->andFieldEqual('groupId', $groupId);
     $ex->setLimitClause(1, 1);
     return $this->findIdByExample($ex);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:8,代码来源:authorization_moderator_permission_dao.php

示例7: getGoalLatestDonations

 public function getGoalLatestDonations($goalId, $limit)
 {
     $example = new OW_Example();
     $example->andFieldEqual('goalId', $goalId);
     $example->setOrder('`donationStamp` DESC');
     $example->setLimitClause(0, $limit);
     return $this->findListByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:8,代码来源:donation_dao.php

示例8: findUserGuests

 /**
  * @param $userId
  * @param $page
  * @param $limit
  * @return array|mixed
  */
 public function findUserGuests($userId, $page, $limit)
 {
     $first = ($page - 1) * $limit;
     $example = new OW_Example();
     $example->andFieldEqual('userId', $userId);
     $example->setLimitClause($first, $limit);
     $example->setOrder('`visitTimestamp` DESC');
     return $this->findListByExample($example);
 }
开发者ID:hardikamutech,项目名称:hammu,代码行数:15,代码来源:hammu_dao.php

示例9: getUpdatedActions

 public function getUpdatedActions()
 {
     $ex = new OW_Example();
     $ex->andFieldEqual(PRIVACY_BOL_CronDao::IN_PROCESS, 0);
     $ex->setOrder(PRIVACY_BOL_CronDao::TIMESTAMP);
     $ex->setLimitClause(0, 500);
     $objectList = $this->findListByExample($ex);
     return $objectList;
 }
开发者ID:jorgemunoz8807,项目名称:havanabook,代码行数:9,代码来源:cron_dao.php

示例10: findLast

 /**
  * Finds user last action log
  * 
  * @param int $userId
  * @param int $actionId
  */
 public function findLast($userId, $actionId)
 {
     $example = new OW_Example();
     $example->andFieldEqual('userId', $userId);
     $example->andFieldEqual('actionId', $actionId);
     $example->setOrder('`logTimestamp` DESC');
     $example->setLimitClause(0, 1);
     return $this->findObjectByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:15,代码来源:log_dao.php

示例11: findHotList

 public function findHotList($start = 0, $count = null)
 {
     $example = new OW_Example();
     $example->setOrder("`timestamp` DESC");
     if ($count !== null) {
         $example->setLimitClause($start, $count);
     }
     return $this->findListByExample($example);
 }
开发者ID:hardikamutech,项目名称:loov,代码行数:9,代码来源:user_dao.php

示例12: findList

 public function findList($optionId, $limit = null)
 {
     $example = new OW_Example();
     $example->andFieldEqual('optionId', $optionId);
     if (!empty($limit)) {
         $example->setLimitClause(0, $limit);
     }
     $example->setOrder('timeStamp DESC');
     return $this->findListByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:10,代码来源:answer_dao.php

示例13: findImages

 public function findImages($plugin, $userId = null, $first, $count)
 {
     $ex = new OW_Example();
     $ex->andFieldEqual('plugin', $plugin);
     if ($userId !== null && intval($userId) > 0) {
         $ex->andFieldEqual('userId', $userId);
     }
     $ex->setLimitClause($first, $count)->setOrder('stamp DESC');
     return $this->findListByExample($ex);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:10,代码来源:media_panel_file_dao.php

示例14: findByEntityTypeList

 /**
  * 
  * @param array $entityTypes
  * @return array
  */
 public function findByEntityTypeList($entityTypes, array $limit = null)
 {
     $example = new OW_Example();
     $example->andFieldInArray("entityType", $entityTypes);
     if (!empty($limit)) {
         $example->setLimitClause($limit[0], $limit[1]);
     }
     $example->setOrder("timeStamp DESC");
     return $this->findListByExample($example);
 }
开发者ID:hardikamutech,项目名称:loov,代码行数:15,代码来源:flag_dao.php

示例15: getAllProviders

 /**
  * find All Provider
  *
  * @param array $params
  * @return array YNCONTACTIMPORTER_BOL_Provider
  */
 public function getAllProviders($params = array())
 {
     $example = new OW_Example();
     if (isset($params['limit'])) {
         $example->setLimitClause(0, $params['limit']);
     }
     if (isset($params['enable'])) {
         $example->andFieldEqual('enable', $params['enable']);
     }
     $example->setOrder("`order`");
     return $this->providerDao->getAllProviders($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:18,代码来源:provider_service.php


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