/**
* This class provides the functionality to support Proximity Searches.
*/
-class CRM_Contact_Form_Task_ProximityCommon extends CRM_Contact_Form_Task {
+class CRM_Contact_Form_Task_ProximityCommon {
/**
* The context that we are working on.
*/
protected $_title;
- /**
- * Build all the data structures needed to build the form.
- */
- public function preProcess() {
- // initialize the task and row fields
- parent::preProcess();
- }
-
/**
* Build the form object.
*
* @param CRM_Core_Form $form
* @param int $proxSearch
*/
- public function buildQuickForm($form, $proxSearch) {
+ static public function buildQuickForm($form, $proxSearch) {
// is proximity search required (2) or optional (1)?
$proxRequired = ($proxSearch == 2 ? TRUE : FALSE);
$form->assign('proximity_search', TRUE);
/**
* Set the default form values.
*
- *
* @param CRM_Core_Form $form
*
* @return array
* the default array reference
*/
- public function setDefaultValues($form) {
+ static public function setDefaultValues($form) {
$defaults = array();
$config = CRM_Core_Config::singleton();
$countryDefault = $config->defaultContactCountry;