<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | 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$
*
*/
*
* @access public
*
- * @return None
+ * @return void
*/
function setDefaultValues() {
if (!$this->_defaults) {
/**
* Function to actually build the form
*
- * @return None
+ * @return void
* @access public
*/
public function buildQuickForm() {
*
* @access public
*
- * @return None
+ * @return void
*/
public function postProcess() {
// store the submitted values in an array
self::commonProcess($params);
}
+ /**
+ * @param $params
+ */
public function commonProcess(&$params) {
// save autocomplete search options
- if (CRM_Utils_Array::value('autocompleteContactSearch', $params)) {
+ if (!empty($params['autocompleteContactSearch'])) {
$value = CRM_Core_DAO::VALUE_SEPARATOR . implode(CRM_Core_DAO::VALUE_SEPARATOR,
array_keys($params['autocompleteContactSearch'])
) . CRM_Core_DAO::VALUE_SEPARATOR;
}
// save autocomplete contact reference options
- if (CRM_Utils_Array::value('autocompleteContactReference', $params)) {
+ if (!empty($params['autocompleteContactReference'])) {
$value = CRM_Core_DAO::VALUE_SEPARATOR . implode(CRM_Core_DAO::VALUE_SEPARATOR,
array_keys($params['autocompleteContactReference'])
) . CRM_Core_DAO::VALUE_SEPARATOR;
}
// save checksum timeout
- if (CRM_Utils_Array::value('checksumTimeout', $params)) {
+ if (!empty($params['checksumTimeout'])) {
CRM_Core_BAO_Setting::setItem($params['checksumTimeout'],
CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,
'checksum_timeout'
}
// update time for date formats when global time is changed
- if (CRM_Utils_Array::value('timeInputFormat', $params)) {
+ if (!empty($params['timeInputFormat'])) {
$query = "
UPDATE civicrm_preferences_date
SET time_format = %1