Extendedcontact.php 810 Bytes
Newer Older
bgm's avatar
bgm committed
1 2 3 4 5 6 7 8 9 10 11 12
<?php

/**
 * Class CRM_Extendedreport_Form_Report_Contact_Extendedcontact.
 *
 * This class generates a pivot report - due to _customGroupAggregates being set
 * to true based on the civicrm_contact table.
 */
class CRM_Extendedreport_Form_Report_Contact_Extendedcontact extends CRM_Extendedreport_Form_Report_ExtendedReport {
  protected $_baseTable = 'civicrm_contact';
  protected $skipACL = TRUE;
  protected $_customGroupAggregates = TRUE;
13 14
  protected $isPivot = TRUE;
  protected $_noFields = TRUE;
bgm's avatar
bgm committed
15 16 17 18 19 20


  /**
   * Class constructor.
   */
  public function __construct() {
21
    $this->_columns = $this->getColumns('Contact', [
bgm's avatar
bgm committed
22 23
        'fields' => FALSE,
        'order_by' => FALSE,
24
      ]
bgm's avatar
bgm committed
25 26 27 28 29
    );
    $this->_columns['civicrm_contact']['fields']['id']['required'] = TRUE;
    parent::__construct();
  }
}