Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Service/DeveloperGarden/IpLocation.php
Go to the documentation of this file.
00001 <?php
00026 require_once 'Zend/Service/DeveloperGarden/Client/ClientAbstract.php';
00027 
00031 require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/LocateIPResponseType.php';
00032 
00036 require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/LocateIPResponse.php';
00037 
00041 require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/IPAddressLocationType.php';
00042 
00046 require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/RegionType.php';
00047 
00051 require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/GeoCoordinatesType.php';
00052 
00056 require_once 'Zend/Service/DeveloperGarden/Response/IpLocation/CityType.php';
00057 
00061 require_once 'Zend/Service/DeveloperGarden/Request/IpLocation/LocateIPRequest.php';
00062 
00071 class Zend_Service_DeveloperGarden_IpLocation 
00072     extends Zend_Service_DeveloperGarden_Client_ClientAbstract
00073 {
00079     protected $_wsdlFile = 'https://gateway.developer.telekom.com/p3gw-mod-odg-iplocation/services/IPLocation?wsdl';
00080 
00086     protected $_wsdlFileLocal = 'Wsdl/IPLocation.wsdl';
00087 
00094     protected $_classMap = array(
00095         'LocateIPResponseType'  => 'Zend_Service_DeveloperGarden_Response_IpLocation_LocateIPResponseType',
00096         'IPAddressLocationType' => 'Zend_Service_DeveloperGarden_Response_IpLocation_IPAddressLocationType',
00097         'RegionType'            => 'Zend_Service_DeveloperGarden_Response_IpLocation_RegionType',
00098         'GeoCoordinatesType'    => 'Zend_Service_DeveloperGarden_Response_IpLocation_GeoCoordinatesType',
00099         'CityType'              => 'Zend_Service_DeveloperGarden_Response_IpLocation_CityType',
00100     );
00101 
00108     public function locateIP($ip)
00109     {
00110         $request = new Zend_Service_DeveloperGarden_Request_IpLocation_LocateIPRequest(
00111             $this->getEnvironment(),
00112             $ip
00113         );
00114 
00115         $result = $this->getSoapClient()->locateIP($request);
00116 
00117         $response = new Zend_Service_DeveloperGarden_Response_IpLocation_LocateIPResponse($result);
00118         return $response->parse();
00119     }
00120 }
 All Data Structures Namespaces Files Functions Variables Enumerations