本文整理汇总了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);
}
示例2: cleareExpiredNotifyLog
public function cleareExpiredNotifyLog($timestamp)
{
if (empty($timestamp)) {
return FALSE;
}
$example = new OW_Example();
$example->andFieldLessOrEqual(self::TIMESTAMP, $timestamp);
return $this->deleteByExample($example);
}
示例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);
}
示例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);
}
示例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);
}
示例6: findExpiredDate
public function findExpiredDate($timestamp)
{
$example = new OW_Example();
$example->andFieldLessOrEqual(self::TIMESTAMP, $timestamp);
return $this->findListByExample($example);
}
示例7: deleteActionSetByTimestamp
/**
* @param int $startTime
*/
public function deleteActionSetByTimestamp($timestamp)
{
$ex = new OW_Example();
$ex->andFieldLessOrEqual('timestamp', (int) $timestamp);
$this->deleteByExample($ex);
}
示例8: deleteExpiredEntities
public function deleteExpiredEntities()
{
$example = new OW_Example();
$example->andFieldLessOrEqual(self::EXPIRATION_TS, time());
$this->deleteByExample($example);
}
示例9: deleteByCreatedStamp
public function deleteByCreatedStamp($stamp)
{
$timeStamp = (int) $stamp;
$example = new OW_Example();
$example->andFieldLessOrEqual('createStamp', $timeStamp);
$this->deleteByExample($example);
}
示例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);
}
示例11: findEntityInvitationCount
public function findEntityInvitationCount($entityType, $entityId)
{
$example = new OW_Example();
$example->andFieldEqual('entityType', $entityType);
$example->andFieldLessOrEqual('entityId', $entityId);
return $this->countByExample($example);
}