<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
protected $detail;
protected $summary;
- function __construct() {
+ /**
+ *
+ */
+ public function __construct() {
// don’t display the ‘Add these Contacts to Group’ button
$this->_add2groupSupported = FALSE;
$this->altered_name = CRM_Utils_Request::retrieve('alteredName', 'String', CRM_Core_DAO::$_nullObject);
$this->altered_by = CRM_Utils_Request::retrieve('alteredBy', 'String', CRM_Core_DAO::$_nullObject);
$this->altered_by_id = CRM_Utils_Request::retrieve('alteredById', 'Integer', CRM_Core_DAO::$_nullObject);
-
+
parent::__construct();
CRM_Utils_System::resetBreadCrumb();
);
}
- function buildQuery($applyLimit = TRUE) {}
+ /**
+ * @param bool $applyLimit
+ */
+ public function buildQuery($applyLimit = TRUE) {}
- function buildRows($sql, &$rows) {
+ /**
+ * @param $sql
+ * @param $rows
+ */
+ public function buildRows($sql, &$rows) {
// safeguard for when there aren’t any log entries yet
if (!$this->log_conn_id or !$this->log_date) {
return;
}
}
+ /**
+ * @param $table
+ *
+ * @return array
+ */
protected function diffsInTable($table) {
$rows = array();
}
// special-case for multiple values. Also works for CRM-7251: preferred_communication_method
- if ((substr($from, 0, 1) == CRM_Core_DAO::VALUE_SEPARATOR &&
- substr($from, -1, 1) == CRM_Core_DAO::VALUE_SEPARATOR) ||
- (substr($to, 0, 1) == CRM_Core_DAO::VALUE_SEPARATOR &&
+ if ((substr($from, 0, 1) == CRM_Core_DAO::VALUE_SEPARATOR &&
+ substr($from, -1, 1) == CRM_Core_DAO::VALUE_SEPARATOR) ||
+ (substr($to, 0, 1) == CRM_Core_DAO::VALUE_SEPARATOR &&
substr($to, -1, 1) == CRM_Core_DAO::VALUE_SEPARATOR)) {
$froms = $tos = array();
foreach (explode(CRM_Core_DAO::VALUE_SEPARATOR, trim($from, CRM_Core_DAO::VALUE_SEPARATOR)) as $val) {
return $rows;
}
- function buildQuickForm() {
+ public function buildQuickForm() {
parent::buildQuickForm();
$params = array(
$this->assign('revertConfirm', ts('Are you sure you want to revert all these changes?'));
}
}
-