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

Class: WBprofile

Source Location: /WBprofile.php

Class Overview

WBobject
   |
   --WBprofile

This class manages WBprofile objects. Profiles available for a given application (WBapplication, code, name, description).


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 WBprofile objects. Profiles available for a given application (WBapplication, code, name, description).

Created on 24 jun 09

Changes: 1.2 -> 1.3: 14 aug 09 updated: updateWBprofile() function bug solved 1.1 -> 1.2: 15 jul 09 updated: file is PEAR compatible 1.0 -> 1.1: 02 jul 09 added: $this->sIDrowname, $this->aObjects




Tags:

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


[ Top ]


Class Variables

$aObjects = array(
        "wbProfileApplication"  =>  "WBapplication"
    )

[line 86]

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 =  "wbProfileID"

[line 81]

Variable that contains ID rowname



Tags:

access:  protected

Type:   string


[ Top ]

$table =  "WBprofile"

[line 44]

Variable that contains table name



Tags:

access:  public

Type:   string


[ Top ]

$wbProfileApplication =

[line 55]

Variable that contains profile application object



Tags:

access:  public

Type:   object


[ Top ]

$wbProfileApplicationID =

[line 60]

Variable that contains profile application ID



Tags:

access:  public

Type:   object


[ Top ]

$wbProfileCode =

[line 65]

Variable that contains code of the profile



Tags:

access:  public

Type:   string


[ Top ]

$wbProfileDescription =

[line 75]

Variable that contains profile description



Tags:

access:  public

Type:   string


[ Top ]

$wbProfileID =

[line 50]

Variable that contains object ID



Tags:

access:  public

Type:   int


[ Top ]

$wbProfileName =

[line 70]

Variable that contains profile name



Tags:

access:  public

Type:   string


[ Top ]



Class Methods


method createWBprofile [line 130]

object created createWBprofile( object $this->wbProfileApplication, string $this->wbProfileCode, string $this->wbProfileName, string $this->wbProfileDescription)

WBprofile object creation function

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

  1.  <?php
  2.  $aVars      array(
  3.       "wbProfileApplication"  =>  $oWBapplication,
  4.       "wbProfileCode" =>  "fooCode",
  5.       "wbProfileName" =>  "barName",
  6.       "wbProfileDescription"  =>  "fooDescription"
  7.  );
  8.  $oWBprofile new WBprofile($aVars);
  9.  echo $oWBprofile->createWBprofile()->wbProfileID;
  10.  // profileID
  11.  ?>




Tags:

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


Parameters:

object   $this->wbProfileApplication   WBapplication that has created the log (required)
string   $this->wbProfileCode   code of the profile (required)
string   $this->wbProfileName   name of the profile (required)
string   $this->wbProfileDescription   description of the profile

[ Top ]

method deleteWBprofile [line 307]

bool deleteWBprofile( int $this->wbProfileID)

WBprofile object deletion function

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

  1.  <?php
  2.  $aVars            array("wbProfileID" => 12);
  3.  $oWBprofile       new WBprofile($aVars);
  4.  echo $oWBprofile->deleteWBprofile();
  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->wbProfileID   ID of the profile to be deleted (required)

[ Top ]

method getWBprofile [line 350]

object WBprofile getWBprofile( int $this->wbProfileID)

WBprofile object obtention function

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

  1.  <?php
  2.  $aVars            array("wbProfileID" => 12);
  3.  $oWBprofile        new WBprofile($aVars);
  4.  echo $oWBprofile->getWBprofile()->wbProfileName;
  5.  // fooName
  6.  ?>




Tags:



Parameters:

int   $this->wbProfileID   ID of the profile to get (required)

[ Top ]

method updateWBprofile [line 215]

object updated updateWBprofile( int $this->wbProfileID, string $this->wbProfileApplication, string $this->wbProfileCode, string $this->wbProfileName, string $this->wbProfileDescription)

WBprofile object update function

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

  1.  <?php
  2.  $aVars            array("wbProfileID"=>12,"wbProfileApplication"=>$oWBapplication,"wbProfileCode"=>"barCode","wbProfileName"=>"fooName",
  3.          "wbProfileDescription"=>"barDescription");
  4.  $oWBprofile        new WBprofile($aVars);
  5.  echo $oWBprofile->updateWBprofile()->wbProfileID;
  6.  // 12
  7.  ?>




Tags:

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


Parameters:

int   $this->wbProfileID   ID of the profile to be updated (required)
string   $this->wbProfileApplication   application of the profile (required)
string   $this->wbProfileCode   code of the profile (required)
string   $this->wbProfileName   name of the profile (required)
string   $this->wbProfileDescription   description of the profile (required)

[ Top ]


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