ActivityPivot.php 1.05 KB
Newer Older
bgm's avatar
bgm committed
1 2 3 4 5 6 7 8 9 10 11 12 13
<?php

/**
 * Class CRM_Extendedreport_Form_Report_ActivityPivot
 */
class CRM_Extendedreport_Form_Report_ActivityPivot extends CRM_Extendedreport_Form_Report_ExtendedReport {
  protected $_baseTable = 'civicrm_activity';
  protected $skipACL = FALSE;
  protected $isPivot = TRUE;
  protected $_customGroupAggregates = TRUE;
  protected $_aggregatesIncludeNULL = TRUE;
  protected $_aggregatesAddTotal = TRUE;
  protected $_rollup = 'WITH ROLLUP';
14 15
  public $_drilldownReport = [];
  protected $_potentialCriteria = [];
16
  protected $_noFields = TRUE;
bgm's avatar
bgm committed
17 18 19 20 21

  /**
   * Class constructor.
   */
  public function __construct() {
22 23
    $this->_customGroupExtended['civicrm_activity'] = [
      'extends' => ['Activity'],
bgm's avatar
bgm committed
24 25
      'filters' => TRUE,
      'title' => ts('Activity'),
26
    ];
bgm's avatar
bgm committed
27

28
    $this->_columns = $this->getColumns('Activity', [
bgm's avatar
bgm committed
29
        'fields' => FALSE,
30
      ]
bgm's avatar
bgm committed
31 32 33 34 35 36 37 38 39 40 41
    )//   + $this->getColumns('Contact', array())
    ;
    parent::__construct();
  }

  /**
   * Get from join clauses.
   *
   * @return array
   */
  public function fromClauses() {
42
    return [];
bgm's avatar
bgm committed
43 44
  }
}