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

Class: Estate_GoodsLegalForms

Source Location: /Estate_GoodsLegalForms.php

Class Overview

PHP_Objects
   |
   --Estate_GoodsLegalForms

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 20]
Created on 05 may 09

This class manages Real Estate Goods Legal forms objects.

CHANGES: 1.1 -> 1.2: 08 may 09 Added LegalformAdd() function Added debug value for each function $this->table = "estate_goodslegalforms"; 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 26]

Variable that contains database name



Tags:

access:  protected

Type:   string


[ Top ]

$goodlegalform =

[line 44]

Variable that contains good legal form name



Tags:

access:  protected

Type:   string


[ Top ]

$goodlegalformdescr =

[line 50]

Variable that contains good legal form description



Tags:

access:  protected

Type:   string


[ Top ]

$goodlegalformID =

[line 38]

Variable that contains good legal form ID



Tags:

access:  protected

Type:   int


[ Top ]

$table =  "estate_goodslegalforms"

[line 32]

Variable that contains table name



Tags:

access:  protected

Type:   string


[ Top ]



Class Methods


method LegalformAdd [line 182]

object good LegalformAdd( string $goodlegalform, [string $goodlegalformdescr = null], string $this->database, string $this->table)

Legal form add function

This function is used to add a good legal form object to database. Result is stored in $this and returned

  1.  <?php
  2.  $oLegalForm            new Estate_GoodsLegalForms();
  3.  $oLegalForm->LegalformAdd($legalformname,$legalformdescr);
  4.  ?>




Tags:

return:  legal form object
since:  Version 1.2


Parameters:

string   $this->database   database name
string   $this->table   table name
string   $goodlegalform   good legal form
string   $goodlegalformdescr   good legal form descr

[ Top ]

method LegalformbyID [line 78]

object fetched LegalformbyID( int $legalformID, string $this->database, string $this->table)

Legal form by ID obtention function

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

  1.  <?php
  2.  $oLegalForm            new Estate_GoodsLegalForms();
  3.  print_r($oLegalForm->LegalformbyID(2));
  4.  // legalformobject
  5.  ?>




Tags:

return:  good legal form object
since:  Version 1.0


Parameters:

string   $this->database   database name
string   $this->table   table name
int   $legalformID   ID of the good legal form to be fetched

[ Top ]

method LegalformList [line 131]

object good LegalformList( [string $orderrow = "goodlegalform"], [string $order = "ASC"], string $this->database, string $this->table)

Legal form list function

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

  1.  <?php
  2.  $oLegalForm            new Estate_GoodsLegalForms();
  3.  print_r($oLegalForm->LegalformList());
  4.  // legalformobject
  5.  ?>




Tags:

return:  legal form object
since:  Version 1.0


Parameters:

string   $this->database   database name
string   $this->table   table name
string   $orderrow   order row
string   $order   order (Ascendant / Descendant)

[ Top ]


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