本文整理汇总了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);
}
示例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);
}
示例3: resetAllUsersLastData
public function resetAllUsersLastData()
{
$example = new OW_Example();
$example->andFieldNotEqual('userId', 0);
$this->userLastDataDao->deleteByExample($example);
}
示例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);
}
示例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);
}
示例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);
}
示例7: findNonGuestRoleList
public function findNonGuestRoleList()
{
$ex = new OW_Example();
$ex->andFieldNotEqual('id', $this->getGuestRoleId())->setOrder('sortOrder ASC');
return $this->findListByExample($ex);
}