<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
- *
*/
class CRM_Logging_ReportSummary extends CRM_Report_Form {
protected $cid;
protected $loggingDB;
/**
+ * Class constructor.
*/
public function __construct() {
// don’t display the ‘Add these Contacts to Group’ button
$customTables = $logging->entityCustomDataLogTables('Address');
foreach ($customTables as $table) {
$this->_logTables[$table] = array(
- 'fk' => 'contact_id', // for join of fk_table with contact table
+ // For join of fk_table with contact table.
+ 'fk' => 'contact_id',
'joins' => array(
- 'table' => 'log_civicrm_address', // fk_table
+ // fk_table
+ 'table' => 'log_civicrm_address',
'join' => 'entity_log_civireport.entity_id = fk_table.id',
),
'log_type' => 'Contact',
);
}
- // allow log tables to be extended via report hooks
+ // Allow log tables to be extended via report hooks.
CRM_Report_BAO_Hook::singleton()->alterLogTables($this, $this->_logTables);
parent::__construct();
}
/**
- * @param $entity
+ * Get log type.
+ *
+ * @param string $entity
*
* @return string
*/
}
/**
+ * Get entity value.
+ *
* @param int $id
* @param $entity
* @param $logDate
}
/**
+ * Get entity action.
+ *
* @param int $id
* @param int $connId
* @param $entity
}
return NULL;
}
+
}