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


PHP OW_Example::andFieldEqual方法代码示例

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


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

示例1: deleteByGroupId

 public function deleteByGroupId($groupId, $status = GHEADER_BOL_Cover::STATUS_ACTIVE)
 {
     $example = new OW_Example();
     $example->andFieldEqual('groupId', $groupId);
     $example->andFieldEqual('status', $status);
     return $this->deleteByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:7,代码来源:cover_dao.php

示例2: findByGenderAndAccountType

 public function findByGenderAndAccountType($accountType, $gender)
 {
     $example = new OW_Example();
     $example->andFieldEqual(self::ACCOUNT_TYPE, $accountType);
     $example->andFieldEqual(self::GENDER_VALUE, $gender);
     return $this->findObjectByExample($example);
 }
开发者ID:hardikamutech,项目名称:loov,代码行数:7,代码来源:account_type_to_gender_dao.php

示例3: findPlaceScheme

 /**
  *
  * @param int $placeId
  * @param int $entityId
  * @return BOL_PlaceScheme
  */
 public function findPlaceScheme($placeId, $entityId)
 {
     $example = new OW_Example();
     $example->andFieldEqual('placeId', $placeId);
     $example->andFieldEqual('entityId', $entityId);
     return $this->findObjectByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:13,代码来源:place_entity_scheme_dao.php

示例4: deleteActivity

 public function deleteActivity($questionId, $activityType, $activityId)
 {
     $example = new OW_Example();
     $example->andFieldEqual('questionId', $questionId);
     $example->andFieldEqual('activityType', $activityType);
     $example->andFieldEqual('activityId', $activityId);
     return $this->deleteByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:8,代码来源:activity_dao.php

示例5: findUsersetting

 public function findUsersetting($userId, $key)
 {
     $example = new OW_Example();
     $example->andFieldEqual('userId', $userId);
     if (!empty($key)) {
         $example->andFieldEqual('key', $key);
     }
     return $this->findObjectByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:9,代码来源:usersetting_dao.php

示例6: 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

示例7: findUserToken

 /**
  * find User Token
  *
  * @param array $params
  * @return YNSOCIALBRIDGE_BOL_Token
  */
 public function findUserToken($params = array())
 {
     if (!$params) {
         return null;
     }
     $example = new OW_Example();
     $example->andFieldEqual('service', $params['service']);
     $example->andFieldEqual('userId', $params['userId']);
     return $this->findObjectByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:16,代码来源:token_dao.php

示例8: deleteDataItem

 public function deleteDataItem($entityTypeId, $entityId)
 {
     if (empty($entityTypeId) || empty($entityId)) {
         return FALSE;
     }
     $example = new OW_Example();
     $example->andFieldEqual(self::ENTITY_TYPE_ID, $entityTypeId);
     $example->andFieldEqual(self::ENTITY_ID, $entityId);
     return $this->deleteByExample($example);
 }
开发者ID:tammyrocks,项目名称:photo,代码行数:10,代码来源:search_data_dao.php

示例9: unmark

 public function unmark($userId, $markUserId)
 {
     if (empty($userId) || empty($markUserId)) {
         return NULL;
     }
     $example = new OW_Example();
     $example->andFieldEqual(self::USER_ID, $userId);
     $example->andFieldEqual(self::MARK_USER_ID, $markUserId);
     return $this->deleteByExample($example);
 }
开发者ID:hardikamutech,项目名称:loov,代码行数:10,代码来源:mark_dao.php

示例10: getTotalInviteOfDay

 /**
  * find User Statistic
  *
  * @param array $params
  * @return YNSOCIALBRIDGE_BOL_Statistic
  */
 public function getTotalInviteOfDay($params = array())
 {
     if (!$params) {
         return null;
     }
     $example = new OW_Example();
     $example->andFieldEqual('uid', $params['uid']);
     $example->andFieldEqual('date', $params['date']);
     $example->andFieldEqual('service', $params['service']);
     return $this->findObjectByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:17,代码来源:statistic_dao.php

示例11: getAllSteps

 public function getAllSteps($page, $onlyActive = 1)
 {
     $example = new OW_Example();
     if ($page != 'all') {
         $example->andFieldEqual('page', $page);
     }
     if ($onlyActive == 1) {
         $example->andFieldEqual('active', 1);
     }
     $example->setOrder('`page` ASC,`order` ASC');
     return $this->findListByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:12,代码来源:step_dao.php

示例12: findListByCategoryId

 public function findListByCategoryId($id)
 {
     $example = new OW_Example();
     $example->andFieldEqual('categoryId', $id);
     $example->setOrder('`order` ASC');
     return $this->findListByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:7,代码来源:question_dao.php

示例13: 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

示例14: sendExpiryEmail

 public function sendExpiryEmail()
 {
     $config = OW::getConfig();
     $subject = OW::getLanguage()->text('sponsors', 'reminder_subject');
     $content = OW::getLanguage()->text('sponsors', 'reminder_content');
     $sitemail = $config->getValue('base', 'site_email');
     $sitename = $config->getValue('base', 'site_name');
     $mails = array();
     $example = new OW_Example();
     $example->andFieldEqual('status', 1);
     $example->andFieldGreaterThan('price', 0);
     $sponsors = $this->dao->findListByExample($example);
     foreach ($sponsors as $sponsor) {
         $cutoffDay = $sponsor->validity - (int) OW::getConfig()->getValue('sponsors', 'cutoffDay');
         if ((time() - $sponsor->timestamp) / 86400 > $cutoffDay && $cutoffDay > 0) {
             $mail = OW::getMailer()->createMail();
             $mail->addRecipientEmail($sponsor->email);
             $mail->setSender($sitemail, $sitename);
             $mail->setSubject($subject);
             $mail->setHtmlContent($content);
             $textContent = strip_tags(preg_replace("/\\<br\\s*[\\/]?\\s*\\>/", "\n", $content));
             $mail->setTextContent($textContent);
             $mails[] = $mail;
         }
     }
     if (count($mails) > 0) {
         OW::getMailer()->addListToQueue($mails);
     }
 }
开发者ID:vazahat,项目名称:dudex,代码行数:29,代码来源:service.php

示例15: findByGroup

 public function findByGroup($groupId)
 {
     $example = new OW_Example();
     $example->andFieldEqual('groupId', $groupId);
     $example->setOrder('timestamp DESC');
     return $this->findListByExample($example);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:7,代码来源:feed_dao.php


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