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

Class: GEOcountry

Source Location: /GEOcountry.php

Class Overview

WBobject
   |
   --GEOcountry

This class manages GEOcountry 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 34]
This class manages GEOcountry 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 GGcountry to GEOcountry




Tags:

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


[ Top ]


Class Variables

$aObjects = array()

[line 67]

Variable that contains objects list



Tags:

access:  protected

Type:   array


[ Top ]

$database =  "geodatas"

[line 40]

Variable that contains database name



Tags:

access:  public

Type:   string


[ Top ]

$geoCountryID =

[line 51]

Variable that contains object ID



Tags:

access:  public

Type:   int


[ Top ]

$geoCountryName =

[line 56]

Variable that contains country name



Tags:

access:  public

Type:   string


[ Top ]

$sIDrowname =  "geoCountryID"

[line 62]

Variable that contains ID rowname



Tags:

access:  protected

Type:   string


[ Top ]

$table =  "GEOcountry"

[line 45]

Variable that contains table name



Tags:

access:  public

Type:   string


[ Top ]



Class Methods


method getGEOcountry [line 93]

object GGcountry getGEOcountry( int $this->geoCountryID)

GEOcountry object obtention function

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

  1.  <?php
  2.  $aVars                array("geoCountryID" => 12);
  3.  $oGEOcountry           new GEOcountry($aVars);
  4.  echo $oGEOcountry->getGEOcountry()->geoCountryName;
  5.  // fooName
  6.  ?>




Tags:

return:  object
since:  Version 1.0
usedby:  GEOcity::getGEOcity()
uses:  WBobject::getUniqueFromDB()


Parameters:

int   $this->geoCountryID   ID of the country to get (required)

[ Top ]


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