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


PHP OW_Example::andFieldLessOrEqual方法代码示例

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


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

示例1: deleteCompletedFeatures

 public function deleteCompletedFeatures()
 {
     $perDay = OW::getConfig()->getValue('profileprogressbar', 'per_day');
     $example = new OW_Example();
     $example->andFieldLessOrEqual(self::TIME_STAMP, strtotime("-{$perDay} day"));
     return $this->deleteByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:7,代码来源:activity_log_dao.php

示例2: cleareExpiredNotifyLog

 public function cleareExpiredNotifyLog($timestamp)
 {
     if (empty($timestamp)) {
         return FALSE;
     }
     $example = new OW_Example();
     $example->andFieldLessOrEqual(self::TIMESTAMP, $timestamp);
     return $this->deleteByExample($example);
 }
开发者ID:hardikamutech,项目名称:loov,代码行数:9,代码来源:notify_log_dao.php

示例3: findNotificationList

 public function findNotificationList($userId, $beforeStamp, $ignoreIds, $count)
 {
     $example = new OW_Example();
     $example->andFieldEqual('userId', $userId);
     $example->andFieldLessOrEqual('timeStamp', $beforeStamp);
     if (!empty($ignoreIds)) {
         $example->andFieldNotInArray('id', $ignoreIds);
     }
     $example->setLimitClause(0, $count);
     $example->setOrder('viewed, timeStamp DESC');
     return $this->findListByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:12,代码来源:notification_dao.php

示例4: findPreviousSection

 public function findPreviousSection(BOL_QuestionSection $section)
 {
     if ($section === null) {
         return null;
     }
     $example = new OW_Example();
     $example->andFieldLessOrEqual('sortOrder', (int) $section->sortOrder);
     $example->andFieldEqual('isHidden', 0);
     $example->andFieldNotEqual('name', 'about_my_match');
     $example->andFieldNotEqual('name', $section->name);
     $example->setOrder(' sortOrder desc ');
     return $this->findObjectByExample($example);
 }
开发者ID:vBulleteen,项目名称:oxwall,代码行数:13,代码来源:question_section_dao.php

示例5: findListAfterAvatarId

 public function findListAfterAvatarId($avatarId, $count, $includes = true)
 {
     $avatar = $this->findLastByAvatarId($avatarId);
     if ($avatar === null) {
         return array();
     }
     $example = new OW_Example();
     $example->andFieldEqual("userId", $avatar->userId);
     if ($includes) {
         $example->andFieldLessOrEqual("timeStamp", $avatar->timeStamp);
     } else {
         $example->andFieldLessThan("timeStamp", $avatar->timeStamp);
     }
     $example->setOrder("`timeStamp` DESC");
     $example->setLimitClause(0, $count);
     return $this->findListByExample($example);
 }
开发者ID:jorgemunoz8807,项目名称:havanabook,代码行数:17,代码来源:avatar_dao.php

示例6: findExpiredDate

 public function findExpiredDate($timestamp)
 {
     $example = new OW_Example();
     $example->andFieldLessOrEqual(self::TIMESTAMP, $timestamp);
     return $this->findListByExample($example);
 }
开发者ID:hardikamutech,项目名称:hammu,代码行数:6,代码来源:winks_dao.php

示例7: deleteActionSetByTimestamp

 /**
  * @param int $startTime
  */
 public function deleteActionSetByTimestamp($timestamp)
 {
     $ex = new OW_Example();
     $ex->andFieldLessOrEqual('timestamp', (int) $timestamp);
     $this->deleteByExample($ex);
 }
开发者ID:jorgemunoz8807,项目名称:havanabook,代码行数:9,代码来源:action_set_dao.php

示例8: deleteExpiredEntities

 public function deleteExpiredEntities()
 {
     $example = new OW_Example();
     $example->andFieldLessOrEqual(self::EXPIRATION_TS, time());
     $this->deleteByExample($example);
 }
开发者ID:hardikamutech,项目名称:hammu,代码行数:6,代码来源:user_reset_password_dao.php

示例9: deleteByCreatedStamp

 public function deleteByCreatedStamp($stamp)
 {
     $timeStamp = (int) $stamp;
     $example = new OW_Example();
     $example->andFieldLessOrEqual('createStamp', $timeStamp);
     $this->deleteByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:7,代码来源:email_verify_dao.php

示例10: findPostNumber

 /**
  * Returns post number in the topic
  *
  * @param int $topicId
  * @param int $postId
  * @return int
  */
 public function findPostNumber($topicId, $postId)
 {
     $example = new OW_Example();
     $example->andFieldEqual('topicId', $topicId);
     $example->andFieldLessOrEqual('id', $postId);
     return $this->countByExample($example);
 }
开发者ID:jorgemunoz8807,项目名称:havanabook,代码行数:14,代码来源:post_dao.php

示例11: findEntityInvitationCount

 public function findEntityInvitationCount($entityType, $entityId)
 {
     $example = new OW_Example();
     $example->andFieldEqual('entityType', $entityType);
     $example->andFieldLessOrEqual('entityId', $entityId);
     return $this->countByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:7,代码来源:invitation_dao.php


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