<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
class CRM_Utils_Geocode_Yahoo {
/**
- * server to retrieve the lat/long
+ * Server to retrieve the lat/long
*
* @var string
* @static
static protected $_server = 'query.yahooapis.com';
/**
- * uri of service
+ * Uri of service
*
* @var string
* @static
static protected $_uri = '/v1/public/yql';
/**
- * function that takes an address array and gets the latitude / longitude
+ * Function that takes an address array and gets the latitude / longitude
* and postal code for this address. Note that at a later stage, we could
* make this function also clean up the address into a more valid format
*
* @return boolean true if we modified the address, false otherwise
* @static
*/
- static function format(&$values, $stateName = FALSE) {
+ public static function format(&$values, $stateName = FALSE) {
CRM_Utils_System::checkPHPVersion(5, TRUE);
$config = CRM_Core_Config::singleton();