本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例12: findListByCategoryId
public function findListByCategoryId($id)
{
$example = new OW_Example();
$example->andFieldEqual('categoryId', $id);
$example->setOrder('`order` ASC');
return $this->findListByExample($example);
}
示例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);
}
示例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);
}
}
示例15: findByGroup
public function findByGroup($groupId)
{
$example = new OW_Example();
$example->andFieldEqual('groupId', $groupId);
$example->setOrder('timestamp DESC');
return $this->findListByExample($example);
}