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

Class: WBmarket

Source Location: /WBmarket.php

Class Overview

WBobject
   |
   --WBmarket

This class manages WBmarket objects. Grouping of one or more countries that are referred to as a market.


Author(s):

Version:

  • 1.2

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 32]
This class manages WBmarket objects. Grouping of one or more countries that are referred to as a market.

Created on 25 jun 09

Changes: 1.1 -> 1.2: 15 jul 09 updated: file is PEAR compatible 1.0 -> 1.1: 03 jul 09 added: $this->sIDrowname, $this->aObjects




Tags:

author:  Pierre-Dominique Vienne <pvienne@me.com>
version:  1.2
usedby:  SPsetup::updateSPcycle()
usedby:  SPsetup::createSPsetup()
license:  GNU Public License


[ Top ]


Class Variables

$aObjects = array()

[line 65]

Variable that contains objects list



Tags:

access:  protected

Type:   array


[ Top ]

$database =  "prysma"

[line 38]

Variable that contains database name



Tags:

access:  public

Type:   string


[ Top ]

$sIDrowname =  "wbMarketID"

[line 60]

Variable that contains ID rowname



Tags:

access:  protected

Type:   string


[ Top ]

$table =  "WBmarket"

[line 43]

Variable that contains table name



Tags:

access:  public

Type:   string


[ Top ]

$wbMarketID =

[line 49]

Variable that contains object ID



Tags:

access:  public

Type:   int


[ Top ]

$wbMarketName =

[line 54]

Variable that contains name of the market



Tags:

access:  public

Type:   string


[ Top ]



Class Methods


method createWBmarket [line 96]

object created createWBmarket( string $this->wbMarketName)

WBmarket object creation function

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

  1.  <?php
  2.  $aVars        array("wbMarketName" => "fooName");
  3.  $oWBmarket    new WBmarket($aVars);
  4.  echo $oWBmarket->createWBmarket()->wbMarketID;
  5.  // marketID
  6.  ?>




Tags:

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


Parameters:

string   $this->wbMarketName   name of the market (required)

[ Top ]

method deleteWBmarket [line 206]

bool deleteWBmarket( int $this->wbMarketID)

WBmarket object deletion function

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

  1.  <?php
  2.  $aVars            array("wbMarketID" => 12);
  3.  $oWBmarket        new WBmarket($aVars);
  4.  echo $oWBmarket->deleteWBmarket();
  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->wbMarketID   ID of the market to be deleted (required)

[ Top ]

method getWBmarket [line 247]

object WBmarket getWBmarket( int $this->wbMarketID)

WBmarket object obtention function

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

  1.  <?php
  2.  $aVars            array("wbMarketID" => 12);
  3.  $oWBmarket        new WBmarket($aVars);
  4.  echo $oWBmarket->getWBmarket()->wbMarketName;
  5.  // fooName
  6.  ?>




Tags:



Parameters:

int   $this->wbMarketID   ID of the market to get (required)

[ Top ]

method updateWBmarket [line 147]

object updated updateWBmarket( int $this->wbMarketID, string $this->wbMarketName)

WBmarket object update function

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

  1.  <?php
  2.  $aVars     array("wbMarketID" => 12"wbMarketName" => "fooName");
  3.  $oWBmarket new WBmarket($aVars);
  4.  echo $oWBmarket->updateWBmarket()->wbProfileID;
  5.  // 12
  6.  ?>




Tags:

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


Parameters:

int   $this->wbMarketID   ID of the market to be updated (required)
string   $this->wbMarketName   name of the market (required)

[ Top ]


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