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

Class: Link_WBcurrency_WBcountry

Source Location: /Link_WBcurrency_WBcountry.php

Class Overview

WBobject
   |
   --Link_WBcurrency_WBcountry

Created on 30 jun 09


Author(s):

Version:

  • 1.1

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 17]
Created on 30 jun 09

This class manages Link_WBcurrency_WBcountry objects.

Changes: 1.0 -> 1.1: 02 jul 09 added: $this->sIDrowname, $this->aObjects




Tags:

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


[ Top ]


Class Variables

$aObjects = array("wbCurrency"=>"WBcurreny","wbCountry"=>"WBcountry")

[line 65]

Variable that contains objects list



Tags:

access:  protected

Type:   array


[ Top ]

$database =  "prysma"

[line 23]

Variable that contains database name



Tags:

access:  public

Type:   string


[ Top ]

$linkID =

[line 34]

Variable that contains object ID



Tags:

access:  public

Type:   int


[ Top ]

$sIDrowname =  "linkID"

[line 60]

Variable that contains ID rowname



Tags:

access:  protected

Type:   string


[ Top ]

$table =  "Link_WBcurrency_WBcountry"

[line 28]

Variable that contains table name



Tags:

access:  public

Type:   string


[ Top ]

$wbCountry =

[line 49]

Variable that contains country object



Tags:

access:  public

Type:   object


[ Top ]

$wbCountryID =

[line 54]

Variable that contains country ID



Tags:

access:  public

Type:   int


[ Top ]

$wbCurrency =

[line 39]

Variable that contains currency object



Tags:

access:  public

Type:   object


[ Top ]

$wbCurrencyID =

[line 44]

Variable that contains currency ID



Tags:

access:  public

Type:   int


[ Top ]



Class Methods


method createLink_WBcurrency_WBcountry [line 97]

object created createLink_WBcurrency_WBcountry( string $this->wbCurrency, string $this->wbCountry)

Link_WBcurrency_WBcountry object creation function

This function is used to create a Links_WBcurrency_WBcountry object Result is stored in $this and object is returned

  1.  <?php
  2.  $aVars                            array("wbCurrency"=>$oWBcurrency,"wbCountry"=>$oWBcountry);
  3.  $oLink_WBcurrency_WBcountry        new Link_WBcurrency_WBcountry($aVars);
  4.  echo $oLink_WBcurrency_WBcountry->createLink_WBcurrency_WBcountry()->linkID;
  5.  // linkID
  6.  ?>




Tags:

return:  object or false
since:  Version 1.0
uses:  WBobject::addToDB()


Parameters:

string   $this->wbCurrency   currency of the link (required)
string   $this->wbCountry   country of the link (required)

[ Top ]

method deleteLink_WBcurrency_WBcountry [line 223]

bool deleteLink_WBcurrency_WBcountry( int $this->linkID)

Link_WBcurrency_WBcountry object deletion function

This function is used to delete a Link_WBcurrency_WBcountry by its ID Result is returned

  1.  <?php
  2.  $aVars                            array("linkID"=>12);
  3.  $oLink_WBcurrency_WBcountry        new Link_WBcurrency_WBcountry($aVars);
  4.  echo $oLink_WBcurrency_WBcountry->deleteLink_WBcurrency_WBcountry();
  5.  // 1
  6.  ?>




Tags:

return:  true or false weither the object could be deleted or not
since:  Version 1.0
uses:  WBobject::deleteFromDB()


Parameters:

int   $this->linkID   ID of the link to be deleted (required)

[ Top ]

method getLink_WBcurrency_WBcountry [line 265]

object Link_WBcurrency_WBcountry getLink_WBcurrency_WBcountry( int $this->linkID)

Link_WBcurrency_WBcountry object obtention function

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

  1.  <?php
  2.  $aVars                            array("linkID"=>12);
  3.  $oLink_WBcurrency_WBcountry        new Link_WBcurrency_WBcountry($aVars);
  4.  echo $oLink_WBcurrency_WBcountry->getLink_WBcurrency_WBcountry()->wbCurrency->wbCurrencyName;
  5.  // fooName
  6.  ?>




Tags:

return:  object
since:  Version 1.0
uses:  WBobject::getUniqueFromDB()
uses:  WBcountry::getWBcountry()
uses:  WBcurrency::getWBcurrency()


Parameters:

int   $this->linkID   ID of the link to get (required)

[ Top ]

method updateLink_WBcurrency_WBcountry [line 157]

object updated updateLink_WBcurrency_WBcountry( int $this->linkID, object $this->wbCurrency, object $this->wbCountry)

Link_WBcurrency_WBcountry object update function

This function is used to update a Link_WBcurrency_WBcountry Result is stored in $this and object is returned

  1.  <?php
  2.  $aVars                        array("linkID"=>12,"wbCurrency"=>$oWBcurrency,"wbCountry"=>$oWBcountry);
  3.  $oLink_WBcurrency_WBcountry    new Link_WBcurrency_WBcountry($aVars);
  4.  echo $oLink_WBcurrency_WBcountry->updateLink_WBcurrency_WBcountry()->linkID;
  5.  // 12
  6.  ?>




Tags:

return:  object or false
since:  Version 1.0
uses:  WBobject::updateDB()


Parameters:

int   $this->linkID   ID of the link to be updated (required)
object   $this->wbCurrency   currency (required)
object   $this->wbCountry   country (required)

[ Top ]


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