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

Class: GEOcity

Source Location: /GEOcity.php

Class Overview

WBobject
   |
   --GEOcity

This class manages GEOcity objects.


Author(s):

Version:

  • 2.0

Variables

Methods


Inherited Methods

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 36]
This class manages GEOcity objects.

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 GGcity to GEOcity




Tags:

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


[ Top ]


Class Variables

$aObjects = array(
        "geoCityCountry" => "GEOcountry"
    )

[line 94]

Variable that contains objects list



Tags:

access:  protected

Type:   array


[ Top ]

$database =  "geodatas"

[line 42]

Variable that contains database name



Tags:

access:  public

Type:   string


[ Top ]

$geoCityCountry =

[line 63]

Variable that contains country object



Tags:

access:  public

Type:   object


[ Top ]

$geoCityCountryID =

[line 68]

Variable that contains country ID



Tags:

access:  public

Type:   int


[ Top ]

$geoCityElevationfeet =

[line 83]

Variable that contains elevation of the city



Tags:

access:  public

Type:   int


[ Top ]

$geoCityID =

[line 53]

Variable that contains object ID



Tags:

access:  public

Type:   int


[ Top ]

$geoCityLatitude =

[line 73]

Variable that contains latitude of the city



Tags:

access:  public

Type:   float


[ Top ]

$geoCityLongitude =

[line 78]

Variable that contains longitude of the city



Tags:

access:  public

Type:   float


[ Top ]

$geoCityName =

[line 58]

Variable that contains city name



Tags:

access:  public

Type:   string


[ Top ]

$sIDrowname =  "geoCityID"

[line 89]

Variable that contains ID rowname



Tags:

access:  protected

Type:   string


[ Top ]

$table =  "GEOcity"

[line 47]

Variable that contains table name



Tags:

access:  public

Type:   string


[ Top ]



Class Methods


method getGEOcity [line 123]

object GEOcity getGEOcity( int $this->geoCityID)

GEOcity object obtention function

This function is used to get a GEOcity by its ID Result is returned

  1.  <?php
  2.  $aVars                array("geoCityID" => 12);
  3.  $oGEOcity              new GEOcity($aVars);
  4.  echo $oGEOcity->getGEOcity()->geoCityName;
  5.  // fooName
  6.  ?>




Tags:

return:  object
since:  Version 1.0
uses:  WBobject::getUniqueFromDB()
uses:  GEOcountry::getGEOcountry()


Parameters:

int   $this->geoCityID   ID of the city to get (required)

[ Top ]


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