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


PHP OW_Example::andFieldNotEqual方法代码示例

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


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

示例1: findNextSection

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

示例2: countUserDraft

 public function countUserDraft($userId)
 {
     $ex = new OW_Example();
     $ex->andFieldEqual('authorId', $userId);
     $ex->andFieldNotEqual('isDraft', 0);
     $cacheLifeTime = self::CACHE_LIFE_TIME;
     $tags = array(self::CACHE_TAG_POST_COUNT);
     return $this->countByExample($ex, $cacheLifeTime, $tags);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:9,代码来源:post_dao.php

示例3: resetAllUsersLastData

 public function resetAllUsersLastData()
 {
     $example = new OW_Example();
     $example->andFieldNotEqual('userId', 0);
     $this->userLastDataDao->deleteByExample($example);
 }
开发者ID:tammyrocks,项目名称:mailbox,代码行数:6,代码来源:conversation_service.php

示例4: countReceivedGifts

 /**
  * Returns user received gifts count
  * 
  * @param int $userId
  * @param boolean $publicOnly
  */
 public function countReceivedGifts($userId, $publicOnly)
 {
     $example = new OW_Example();
     $example->andFieldEqual('recipientId', $userId);
     if ($publicOnly) {
         $example->andFieldNotEqual('private', 1);
     }
     return $this->countByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:15,代码来源:user_gift_dao.php

示例5: getUserClipsList

 /**
  * Get user vwls clips list
  *
  * @param int $userId
  * @param int $itemsNum
  * @param int $exclude 
  * @return array of VWLS_BOL_Clip
  */
 public function getUserClipsList($userId, $page, $itemsNum, $exclude)
 {
     $first = ($page - 1) * $itemsNum;
     $example = new OW_Example();
     $example->andFieldEqual('status', 'approved');
     $example->andFieldEqual('userId', $userId);
     if ($exclude) {
         $example->andFieldNotEqual('id', $exclude);
     }
     $example->setOrder('`addDatetime` DESC');
     $example->setLimitClause($first, $itemsNum);
     return $this->findListByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:21,代码来源:clip_dao.php

示例6: getUncachedThumbsClipsList

 public function getUncachedThumbsClipsList($limit, $plugin = 'video')
 {
     $example = new OW_Example();
     $example->andFieldIsNull('thumbUrl');
     $example->andFieldEqual('plugin', $plugin);
     $example->andFieldNotEqual('provider', 'undefined');
     $example->setOrder('`thumbCheckStamp` ASC');
     $example->setLimitClause(0, $limit);
     return $this->findListByExample($example);
 }
开发者ID:mohamedveto,项目名称:spvideolite,代码行数:10,代码来源:clip_dao.php

示例7: findNonGuestRoleList

 public function findNonGuestRoleList()
 {
     $ex = new OW_Example();
     $ex->andFieldNotEqual('id', $this->getGuestRoleId())->setOrder('sortOrder ASC');
     return $this->findListByExample($ex);
 }
开发者ID:ZyXelP,项目名称:oxwall,代码行数:6,代码来源:authorization_role_dao.php


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