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

Class: Link_WBprofiledUser_WBmarket

Source Location: /Link_WBprofiledUser_WBmarket.php

Class Overview

WBobject
   |
   --Link_WBprofiledUser_WBmarket

Created on 01 jul 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 01 jul 09

This class manages Link_WBprofiledUser_WBmarket 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("wbProfiledUser"=>"WBprofiledUser","wbMarket"=>"WBmarket")

[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_WBprofiledUser_WBmarket"

[line 28]

Variable that contains table name



Tags:

access:  public

Type:   string


[ Top ]

$wbMarket =

[line 49]

Variable that contains market object



Tags:

access:  public

Type:   object


[ Top ]

$wbMarketID =

[line 54]

Variable that contains market ID



Tags:

access:  public

Type:   int


[ Top ]

$wbProfiledUser =

[line 39]

Variable that contains Profiled User object



Tags:

access:  public

Type:   object


[ Top ]

$wbProfiledUserID =

[line 44]

Variable that contains Profiled User ID



Tags:

access:  public

Type:   int


[ Top ]



Class Methods


method createLink_WBprofiledUser_WBmarket [line 97]

object created createLink_WBprofiledUser_WBmarket( object $this->wbProfiledUser, object $this->wbMarket)

Link_WBprofiledUser_WBmarket object creation function

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

  1.  <?php
  2.  $aVars                            array("wbProfiledUser"=>$oWBprofiledUser,"wbMarket"=>$oWBmarket);
  3.  $oLink_WBprofiledUser_WBmarket    new Link_WBprofiledUser_WBmarket($aVars);
  4.  echo $oLink_WBprofiledUser_WBmarket->createLink_WBprofiledUser_WBmarket()->linkID;
  5.  // linkID
  6.  ?>




Tags:

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


Parameters:

object   $this->wbProfiledUser   profiled user of the link (required)
object   $this->wbMarket   market of the link (required)

[ Top ]

method deleteLink_WBprofiledUser_WBmarket [line 223]

bool deleteLink_WBprofiledUser_WBmarket( int $this->linkID)

Link_WBprofiledUser_WBmarket object deletion function

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

  1.  <?php
  2.  $aVars                            array("linkID"=>12);
  3.  $oLink_WBprofiledUser_WBmarket    new Link_WBprofiledUser_WBmarket($aVars);
  4.  echo $oLink_WBprofiledUser_WBmarket->deleteLink_WBprofiledUser_WBmarket();
  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_WBprofiledUser_WBmarket [line 265]

object Link_WBprofiledUser_WBmarket getLink_WBprofiledUser_WBmarket( int $this->linkID)

Link_WBprofiledUser_WBmarket object obtention function

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

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




Tags:

return:  object
since:  Version 1.0
uses:  WBprofiledUser::getprofiledUser()
uses:  WBmarket::getWBmarket()
uses:  WBobject::getUniqueFromDB()


Parameters:

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

[ Top ]

method updateLink_WBprofiledUser_WBmarket [line 157]

object updated updateLink_WBprofiledUser_WBmarket( int $this->linkID, object $this->wbProfiledUser, object $this->wbMarket)

Link_WBprofiledUser_WBmarket object update function

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

  1.  <?php
  2.  $aVars                            array("linkID"=>12,"wbProfiledUser"=>$oWBprofiledUser,"wbMarket"=>$oWBmarket);
  3.  $oLink_WBprofiledUser_WBmarket    new Link_WBprofiledUser_WBmarket$aVars);
  4.  echo $oLink_WBprofiledUser_WBmarket->updateLink_WBprofiledUser_WBmarket()->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->wbProfiledUser   profiled user (required)
object   $this->wbMarket   market (required)

[ Top ]


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