<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | 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$
*
*/
* @param
*
* @return void
- *
- * @access public
- *
*/
- function preProcess() {
+ public function preProcess() {
$this->_mode = CRM_Profile_Form::MODE_SEARCH;
parent::preProcess();
}
/**
- * Set the default form values
+ * Set the default form values.
*
- * @access protected
*
- * @return array the default array reference
+ * @return array
+ * the default array reference
*/
- function setDefaultValues() {
+ public function setDefaultValues() {
$defaults = array();
// note we intentionally overwrite value since we use it as defaults
// and its all pass by value
}
}
elseif (in_array($key, array(
- 'birth_date', 'deceased_date'))) {
+ 'birth_date',
+ 'deceased_date',
+ ))) {
list($value) = CRM_Utils_Date::setDateDefaults($value);
}
}
/**
- * Build the form object
+ * Build the form object.
*
* @return void
- * @access public
*/
public function buildQuickForm() {
// Is proximity search enabled for this profile?
}
$this->addButtons(array(
- array(
- 'type' => 'refresh',
- 'name' => ts('Search'),
- 'isDefault' => TRUE,
- ),
- ));
+ array(
+ 'type' => 'refresh',
+ 'name' => ts('Search'),
+ 'isDefault' => TRUE,
+ ),
+ ));
parent::buildQuickForm();
}
/**
*
*
- * @access public
*
* @return void
*/
- public function postProcess() {}
-}
+ public function postProcess() {
+ }
+}