本文整理汇总了PHP中ARSelectFilter::getOffset方法的典型用法代码示例。如果您正苦于以下问题:PHP ARSelectFilter::getOffset方法的具体用法?PHP ARSelectFilter::getOffset怎么用?PHP ARSelectFilter::getOffset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ARSelectFilter
的用法示例。
在下文中一共展示了ARSelectFilter::getOffset方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: merge
/**
* Merges two filters (filter supplied as parameter overwrites order and limit
* params of this filter)
*
* @param ARSelectFilter $filter
*/
public function merge(ARSelectFilter $filter)
{
if ($filter->isConditionSet()) {
$this->mergeCondition($filter->getCondition());
}
if ($filter->isHavingConditionSet()) {
$this->mergeHavingCondition($filter->getHavingCondition());
}
$this->setFieldOrder($filter->getFieldOrder());
$this->setLimit($filter->getLimit(), $filter->getOffset());
$groupings = $filter->getGroupingFields();
$this->fieldListForGroup = array_merge($this->getGroupingFields(), $groupings);
$joins = $filter->getJoinList();
$this->joinList = array_merge($this->joinList, $joins);
$fields = $filter->getFieldList();
$this->fieldList = array_merge($this->fieldList, $fields);
}