3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
19 class CRM_Report_Form_Contact_LoggingDetail
extends CRM_Logging_ReportDetail
{
23 public function __construct() {
24 $this->log_conn_id
= CRM_Utils_Request
::retrieve('log_conn_id', 'String');
25 $this->log_date
= CRM_Utils_Request
::retrieve('log_date', 'String');
26 $this->setTablesToContactRelatedTables();
27 $this->calculateContactDiffs();
28 $this->detail
= 'logging/contact/detail';
29 $this->summary
= 'logging/contact/summary';
31 parent
::__construct();
34 public function buildQuickForm() {
35 $layout = CRM_Utils_Request
::retrieve('layout', 'String', $this);
36 $this->assign('layout', $layout);
38 parent
::buildQuickForm();
41 // link back to contact summary
42 $this->assign('backURL', CRM_Utils_System
::url('civicrm/contact/view', "reset=1&selectedChild=log&cid={$this->cid}", FALSE, NULL, FALSE));
43 $this->assign('revertURL', self
::$_template->get_template_vars('revertURL') . "&cid={$this->cid}");
46 // link back to summary report
47 $this->assign('backURL', CRM_Report_Utils_Report
::getNextUrl('logging/contact/summary', 'reset=1', FALSE, TRUE));