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

Class: Brands

Source Location: /Brands.php

Class Overview


Created on 01 mars 09


Author(s):

Version:

  • 2.0

Variables

Methods



Class Details

[line 16]
Created on 01 mars 09

This class manages Brands objects.

Changes: 1.0 to 2.0: phpdoc compatible in the way to generate documentation




Tags:

author:  Pierre-Dominique Vienne <pvienne@me.com>
version:  2.0
usedby:  Programs::$oBrand
usedby:  Hardgoods::getlist()
license:  GNU Public License
usedby:  Hardgoods::$oBrand


[ Top ]


Class Variables

$brandID =

[line 34]

Variable that contains brand ID



Tags:

access:  public

Type:   int


[ Top ]

$brandname =

[line 39]

Variable that contains brand name



Tags:

access:  public

Type:   string


[ Top ]

$database =  "itcontact"

[line 22]

Variable that contains database name



Tags:

access:  public

Type:   string


[ Top ]

$debug =  false

[line 51]

Variable that contains debug switch



Tags:

access:  public

Type:   bool


[ Top ]

$result =

[line 45]

Variable that contains Select Results



Tags:

access:  public

Type:   array


[ Top ]

$table =  "brands"

[line 27]

Variable that contains table name



Tags:

access:  public

Type:   string


[ Top ]



Class Methods


constructor __construct [line 76]

Brands __construct( [array $aParams = null], [string $sAction = null])

Construction function

This function is used when object is generated. It places variables in "$this" var and can launch function

  1.  <?php
  2.  $aParams        array("brandname"=>"Apple");
  3.  $oBrands        new Brands($aParams);
  4.  echo $oBrands->brandname;
  5.  // Apple
  6.  ?>




Tags:

since:  Version 1.0
uses:  Strings


Parameters:

array   $aParams   array containing variable names and their value ($variablename => $value)
string   $sAction   string containing action to perform on object creation

[ Top ]


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