當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。