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

Class: WBproductRange

Source Location: /WBproductRange.php

Class Overview

WBobject
   |
   --WBproductRange

This class manages WBproductRange objects. Groups of models that are used for similar purposes.


Author(s):

Version:

  • 1.3

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 33]
This class manages WBproductRange objects. Groups of models that are used for similar purposes.

Created on 23 jun 09

Changes: 1.2 -> 1.3: 15 jul 09 updated: file is PEAR compatible 1.1 -> 1.2: 02 jul 09 added: $this->sIDrowname, $this->aObjects 1.0 -> 1.1: 25 jun 09 added: getWBproductRange() function




Tags:

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


[ Top ]


Class Variables

$aObjects = array()

[line 66]

Variable that contains objects list



Tags:

access:  protected

Type:   array


[ Top ]

$database =  "prysma"

[line 39]

Variable that contains database name



Tags:

access:  public

Type:   string


[ Top ]

$sIDrowname =  "wbProductRangeID"

[line 61]

Variable that contains ID rowname



Tags:

access:  protected

Type:   string


[ Top ]

$table =  "WBproductRange"

[line 44]

Variable that contains table name



Tags:

access:  public

Type:   string


[ Top ]

$wbProductRangeID =

[line 50]

Variable that contains object ID



Tags:

access:  public

Type:   int


[ Top ]

$wbProductRangeName =

[line 55]

Variable that contains product range name



Tags:

access:  public

Type:   string


[ Top ]



Class Methods


method createWBproductRange [line 98]

object created createWBproductRange( string $this->wbProductRangeName)

WBproductRange object creation function

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

  1.  <?php
  2.  $aVars           array("wbProductRangeName" => "FooRange");
  3.  $oWBproductRange new WBproductRange($aVars);
  4.  echo $oWBproductRange->createWBproductRange()->wbProductRangeID;
  5.  // productrangeID
  6.  ?>




Tags:

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


Parameters:

string   $this->wbProductRangeName   name of the product range (required)

[ Top ]

method deleteWBproductRange [line 212]

bool deleteWBproductRange( int $this->wbProductRangeID)

WBproductRange object deletion function

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

  1.  <?php
  2.  $aVars           array("wbProductRangeID" => 12);
  3.  $oWBproductRange new WBproductRange($aVars);
  4.  echo $oWBproductRange->deleteWBproductRange();
  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->wbProductRangeID   ID of the product range to be deleted (required)

[ Top ]

method getWBproductRange [line 254]

object WBproductRange getWBproductRange( int $this->wbProductRangeID)

WBproductRange object obtention function

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

  1.  <?php
  2.  $aVars            array("wbProductRangeID" => 12);
  3.  $oWBproductRange  new WBproductRange($aVars);
  4.  echo $oWBproductRange->getWBproductRange()->wbProductRangeName;
  5.  // fooName
  6.  ?>




Tags:

return:  object
since:  Version 1.1
usedby:  WBproductModel::getWBproductModel()
uses:  WBobject::getUniqueFromDB()


Parameters:

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

[ Top ]

method updateWBproductRange [line 153]

object updated updateWBproductRange( int $this->wbProductRangeID, string $this->wbProductRangeName)

WBproductRange object update function

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

  1.  <?php
  2.  $aVars           array(
  3.       "wbProductRangeID"  =>  12,
  4.       "wbProductRangeName"    =>    "fooRange"
  5.  );
  6.  $oWBproductRange new WBproductRange($aVars);
  7.  echo $oWBproductRange->updateWBproductRange()->wbProductRangeID;
  8.  // 12
  9.  ?>




Tags:

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


Parameters:

int   $this->wbProductRangeID   ID of the product range to be updated (required)
string   $this->wbProductRangeName   Name of the product range (required)

[ Top ]


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