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

Class: Link_WBmarket_WBcountry

Source Location: /Link_WBmarket_WBcountry.php

Class Overview

WBobject
   |
   --Link_WBmarket_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_WBmarket_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("wbMarket"=>"WBmarket","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_WBmarket_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 ]

$wbMarket =

[line 39]

Variable that contains market object



Tags:

access:  public

Type:   object


[ Top ]

$wbMarketID =

[line 44]

Variable that contains market ID



Tags:

access:  public

Type:   int


[ Top ]



Class Methods


method createLink_WBmarket_WBcountry [line 97]

object created createLink_WBmarket_WBcountry( object $this->wbMarket, object $this->wbCountry)

Link_WBmarket_WBcountry object creation function

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

  1.  <?php
  2.  $aVars                            array("wbMarket"=>$oWBmarket,"wbCountry"=>$oWBcountry);
  3.  $oLink_WBmarket_WBcountry        new Link_WBmarket_WBcountry($aVars);
  4.  echo $oLink_WBmarket_WBcountry->createLink_WBmarket_WBcountry()->linkID;
  5.  // linkID
  6.  ?>




Tags:

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


Parameters:

object   $this->wbMarket   market of the link (required)
object   $this->wbCountry   country of the link (required)

[ Top ]

method deleteLink_WBmarket_WBcountry [line 223]

bool deleteLink_WBmarket_WBcountry( int $this->linkID)

Link_WBmarket_WBcountry object deletion function

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

  1.  <?php
  2.  $aVars                            array("linkID"=>12);
  3.  $oLink_WBmarket_WBcountry        new Link_WBmarket_WBcountry($aVars);
  4.  echo $oLink_WBmarket_WBcountry->deleteLink_WBmarket_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_WBmarket_WBcountry [line 265]

object Link_WBmarket_WBcountry getLink_WBmarket_WBcountry( int $this->linkID)

Link_WBmarket_WBcountry object obtention function

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

  1.  <?php
  2.  $aVars                            array("linkID"=>12);
  3.  $oLink_WBmarket_WBcountry        new Link_WBmarket_WBcountry($aVars);
  4.  echo $oLink_WBmarket_WBcountry->getLink_WBmarket_WBcountry()->wbMarket->wbMarketName;
  5.  // fooName
  6.  ?>




Tags:

return:  object
since:  Version 1.0
uses:  WBobject::getUniqueFromDB()
uses:  WBcountry::getWBcountry()
uses:  WBmarket::getWBmarket()


Parameters:

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

[ Top ]

method updateLink_WBmarket_WBcountry [line 157]

object updated updateLink_WBmarket_WBcountry( int $this->linkID, object $this->wbMarket, object $this->wbCountry)

Link_WBmarket_WBcountry object update function

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

  1.  <?php
  2.  $aVars                        array("linkID"=>12,"wbMarket"=>$oWBmarket,"wbCountry"=>$oWBcountry);
  3.  $oLink_WBmarket_WBcountry    new Link_WBmarket_WBcountry$aVars);
  4.  echo $oLink_WBmarket_WBcountry->updateLink_WBmarket_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->wbMarket   market (required)
object   $this->wbCountry   country (required)

[ Top ]


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