Class TTvaType

Description

Manage the tva type

  • author: SimpliciWeb
  • version: $Id: t_tvatype.class.php 602 2007-07-18 16:18:38Z stephanet $
  • todo: -c Implement .les TVA n'etant pas nombreuses on porrait envisager de les loader en mémoire pour eviter de faire un select a chaque coup

Located in /core/internal_components/admin_sites/t_tvatype/t_tvatype.class.php (line 62)


	
			
Variable Summary
Method Summary
 bool add (string $p_tty_name, float $p_tty_value)
 bool delete (integer $p_tty_id)
 bool get (integer $p_tty_id,  &$r_array, array $r_array)
 bool getId (float $p_tty_value,  &$r_id, integer $r_id)
 bool getList ( &$r_array, array $r_array)
 bool getListName ( &$r_array, array $r_array)
 bool isNotValidId (string $p_value)
 bool isNotValidName (string $p_value)
 bool isNotValidValue (string $p_value)
 bool update (integer $p_tty_id, string $p_tty_name, float $p_tty_value)
 bool xGetCountProductsUsingThisTva (integer $p_tty_id,  &$p_count_products, integer $p_count_products)
Variables
DbConnexion $m_object_dbconnexion = NULL (line 112)

Database Connexion object

Format $m_object_format = NULL (line 124)

Format Object

siteInformation $m_object_siteinformation = NULL (line 118)

SiteInformation Object

string $req_count_tproductmaster = "" (line 99)

SQL Request : Count

string $req_delete = "" (line 75)

SQL Request : Delete

string $req_insert = "" (line 69)

SQL Request : Insert

string $req_select = "" (line 87)

SQL Request : Select

string $req_select_by_value = "" (line 93)

SQL Request : Select by value

string $req_select_one = "" (line 105)

SQL Request : Select one

string $req_update = "" (line 81)

SQL Request : Update

Methods
Constructor TTvaType (line 135)

Constructor, init the requests and objects

TTvaType TTvaType ()
add (line 189)

Add a tva type

  • return: TRUE on error
bool add (string $p_tty_name, float $p_tty_value)
  • string $p_tty_name
  • float $p_tty_value
delete (line 217)

Delete

  • return: TRUE on error
bool delete (integer $p_tty_id)
  • integer $p_tty_id
get (line 339)

Get

  • return: TRUE on error
bool get (integer $p_tty_id,  &$r_array, array $r_array)
  • integer $p_tty_id
  • array $r_array
  • &$r_array
getId (line 371)

Get Id by value

  • return: TRUE on error
bool getId (float $p_tty_value,  &$r_id, integer $r_id)
  • float $p_tty_value
  • integer $r_id
  • &$r_id
getList (line 310)

Get list

  • return: TRUE on error
bool getList ( &$r_array, array $r_array)
  • array $r_array
  • &$r_array
getListName (line 401)

Get list name

  • return: TRUE on error
bool getListName ( &$r_array, array $r_array)
  • array $r_array
  • &$r_array
isNotValidId (line 158)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool isNotValidId (string $p_value)
  • string $p_value
isNotValidName (line 168)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool isNotValidName (string $p_value)
  • string $p_value
isNotValidValue (line 178)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool isNotValidValue (string $p_value)
  • string $p_value
update (line 250)

udpate

  • return: TRUE on error
bool update (integer $p_tty_id, string $p_tty_name, float $p_tty_value)
  • integer $p_tty_id
  • string $p_tty_name
  • float $p_tty_value
xGetCountProductsUsingThisTva (line 282)

Get count product using this tva

  • return: TRUE on error
  • access: private
bool xGetCountProductsUsingThisTva (integer $p_tty_id,  &$p_count_products, integer $p_count_products)
  • integer $p_tty_id
  • integer $p_count_products
  • &$p_count_products

Documentation generated on Tue, 25 Mar 2008 15:37:28 +0100 by phpDocumentor 1.3.2