本文整理汇总了PHP中CRM_Report_Form::groupBy方法的典型用法代码示例。如果您正苦于以下问题:PHP CRM_Report_Form::groupBy方法的具体用法?PHP CRM_Report_Form::groupBy怎么用?PHP CRM_Report_Form::groupBy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CRM_Report_Form
的用法示例。
在下文中一共展示了CRM_Report_Form::groupBy方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: groupBy
function groupBy()
{
parent::groupBy();
//@todo - need to re-visit this - bad behaviour from pa
if ($this->_groupBy == 'GROUP BY') {
$this->_groupBY = NULL;
}
// if a stat field has been selected the do a group by
if (!empty($this->_statFields) && empty($this->_groupBy)) {
$this->_groupBy[] = $this->_aliases[$this->_baseTable] . ".id";
}
//@todo - this should be in the parent function or at parent level - perhaps build query should do this?
if (!empty($this->_groupBy) && is_array($this->_groupBy)) {
$this->_groupBy = 'GROUP BY ' . implode(',', $this->_groupBy);
}
}
示例2: groupBy
public function groupBy()
{
parent::groupBy();
if (empty($this->_groupBy) && $this->_totalPaid) {
$groupBy = array("{$this->_aliases['civicrm_pledge']}.id", "{$this->_aliases['civicrm_pledge']}.currency");
$this->_groupBy = CRM_Contact_BAO_Query::getGroupByFromSelectColumns($this->_selectClauses, $groupBy);
}
}
示例3: groupBy
public function groupBy()
{
parent::groupBy();
if (empty($this->_groupBy) && $this->_totalPaid) {
$this->_groupBy = " GROUP BY {$this->_aliases['civicrm_pledge']}.id, {$this->_aliases['civicrm_pledge']}.currency";
}
}
示例4: groupBy
/**
* GROUP BY for the query.
*/
public function groupBy()
{
parent::groupBy();
// $this->_groupBy = "GROUP BY {$this->_aliases['organization']}.id";
}