Geographical
[ class tree: Geographical ] [ index: Geographical ] [ all elements ]

Class: GEOcities

Source Location: /GEOcities.php

Class Overview

WBobject
   |
   --WBcollection
      |
      --GEOcities

This class manages GEOcity objects collection.


Author(s):

Version:

  • 2.0

Variables

Methods


Inherited Variables

Inherited Methods

Class: WBcollection

WBcollection::getFromDB()
Rows obtention function
WBcollection::getResults()
Results obtention function
WBcollection::renderHTMLresults()
Results conversion to HTML table function
WBcollection::renderHTMLselect()
Results obtention function

Class: WBobject

WBobject::__construct()
Construction function
WBobject::addToDB()
Rows insertion to database function
WBobject::deleteFromDB()
Rows deletion function
WBobject::getIDrowname()
ID rowname obtention function
WBobject::getObjects()
Objects list obtention function
WBobject::getUniqueFromDB()
Unique Row obtention function
WBobject::objectToArray()
Object to array transformation function
WBobject::updateDB()
Rows update function

Class Details

[line 34]
This class manages GEOcity objects collection.

Created on 10 jul 09

CHANGES: 1.0 -> 2.0: 27 jul 09 updated: file is PEAR compatible name of class has been changed from GGcities to GEOcities




Tags:

author:  Pierre-Dominique Vienne <pvienne@me.com>
version:  2.0
license:  GNU Public License


[ Top ]


Class Variables

$iRadiusLength =

[line 69]

Variable that contains distance from which the searched city should

be from the radius center




Tags:

access:  protected

Type:   int


[ Top ]

$km2GPSconversion =  0.009008864864867789

[line 75]

Variable that contains approximatival kilometers to GPS conversion

constant




Tags:

access:  protected

Type:   float


[ Top ]

$oCitynameBegin =

[line 42]

Variable that contains Strings object that contains first letters of

the city name




Tags:

access:  protected

Type:   object


[ Top ]

$oCountry =

[line 48]

Variable that contains GEOcountry object that defines used country

for search query




Tags:

access:  protected

Type:   object


[ Top ]

$oRadiusCenterLat =

[line 57]

Variable that contains GEOlatitude object that contains radius center

latitude




Tags:

access:  protected

Type:   object


[ Top ]

$oRadiusCenterLong =

[line 63]

Variable that contains GEOlongitude object that contains radius center

longitude




Tags:

access:  protected

Type:   object


[ Top ]



Class Methods


method getGEOcities [line 103]

object GEOcities getGEOcities( [array $aSearchValues = null], [ $sOrderRow = "geoCityName"], [ $sOrder = "ASC"])

GEOcities object obtention function

This function is used to get a list of GEOcities Object is returned

  1.  <?php
  2.  $oGEOcities     new GEOcities($aVars);
  3.  print_r($oGEOcities->getGEOcities()->getResults());
  4.  // results...
  5.  ?>




Tags:

return:  object
since:  Version 1.0
uses:  WBcollection::getFromDB()


Parameters:

array   $aSearchValues   search values: array(array( "rowname", "method", "value"), array(), ...)
   $sOrderRow  
   $sOrder  

[ Top ]

method getGEOcitiesByRadius [line 174]

void getGEOcitiesByRadius( $oLatitude, $oLongitude, $iLength, [ $oCountry = null], [ $oCityBegin = null])



Parameters:

   $oLatitude  
   $oLongitude  
   $iLength  
   $oCountry  
   $oCityBegin  

[ Top ]


Documentation generated on Wed, 26 Aug 2009 12:30:14 +0200 by phpDocumentor 1.4.1