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

Class: Estate_GoodPriceTypes

Source Location: /Estate_GoodPriceTypes.php

Class Overview

PHP_Objects
   |
   --Estate_GoodPriceTypes

Created on 05 may 09


Author(s):

Version:

  • 1.2

Variables

Methods


Inherited Variables

Inherited Methods

Class: PHP_Objects

PHP_Objects::__construct()
Construction function
PHP_Objects::getDB()
Database obtention function
PHP_Objects::getTable()
Table obtention function
PHP_Objects::setDebug()
Debug setting function

Class Details

[line 19]
Created on 05 may 09

This class manages Real Estate Good Price Types objects.

CHANGES: 1.1 -> 1.2: 07 may 09 Added TypesList() function Added TypeAdd() function 1.0 -> 1.1: 06 may 09 Added to RealEstates package




Tags:

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


[ Top ]


Class Variables

$database =  "estates"

[line 25]

Variable that contains database name



Tags:

access:  protected

Type:   string


[ Top ]

$table =  "estate_goodpricetypes"

[line 31]

Variable that contains table name



Tags:

access:  protected

Type:   string


[ Top ]

$typeID =

[line 37]

Variable that contains type ID



Tags:

access:  protected

Type:   int


[ Top ]

$typename =

[line 43]

Variable that contains type name



Tags:

access:  protected

Type:   string


[ Top ]



Class Methods


method TypeAdd [line 169]

object good TypeAdd( string $typename, string $this->database, string $this->table)

Type add function

This function is used to add a type to database. Result is stored in $this and returned

  1.  <?php
  2.  $oType            new Estate_GoodPriceTypes();
  3.  $oType->TypeAdd("Location");
  4.  ?>




Tags:

return:  price type object
since:  Version 1.2


Parameters:

string   $this->database   database name
string   $this->table   table name
string   $typename   type name

[ Top ]

method TypebyID [line 71]

object fetched TypebyID( int $typeID, string $this->database, string $this->table)

Type by ID obtention function

This function is used to get good price type object by its ID from database. Result is stored in $this and returned

  1.  <?php
  2.  $oType            new Estate_GoodPriceTypes();
  3.  print_r($oType->TypebyID(2));
  4.  // goodpricetypeobject
  5.  ?>




Tags:

return:  good price type object
since:  Version 1.0


Parameters:

string   $this->database   database name
string   $this->table   table name
int   $typeID   ID of the good price type to be fetched

[ Top ]

method TypesList [line 121]

object good TypesList( string $this->database, string $this->table)

Types list function

This function is used to get types list from database. Result is stored in $this and returned

  1.  <?php
  2.  $oType            new Estate_GoodPriceTypes();
  3.  $oType->TypesList();
  4.  print_r($oType->result);
  5.  // goodpricetypes array
  6.  ?>




Tags:

return:  price type object
since:  Version 1.2


Parameters:

string   $this->database   database name
string   $this->table   table name

[ Top ]


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