Class TAttributValue

Description

Manage the attribut values informations for a product (t-shirt Size : L, XL, S) L, XL, S are the attribut values of the attribut "size"

  • author: SimpliciWeb
  • version: $Id: t_attributvalue.class.php 734 2007-11-30 09:53:30Z stephanet $

Located in /core/internal_components/admin_sites/t_attribut/t_attributvalue.class.php (line 59)


	
			
Variable Summary
Method Summary
 bool deleteByAttId (integer $p_att_id)
 bool deleteByPslId (integer $p_psl_id)
 bool exist (integer $p_ava_psl_id, integer $p_ava_att_id,  &$r_is_existing, bool $r_is_existing)
 bool insert (integer $p_ava_att_id, integer $p_ava_psl_id, string $p_ava_value)
 bool isNotValidValue (string $p_value)
 bool update (integer $p_ava_psl_id, integer $p_ava_att_id, string $p_ava_value)
Variables
DbConnexion $m_db_connexion = NULL (line 97)

Database Connexion object

Format $m_object_format = NULL (line 109)

Format Object

TAttribut $m_object_tattribut = NULL (line 121)

TAttribut Object

TProductSlave $m_object_tproductslave = NULL (line 115)

TProductSlave Object

siteInformation $m_site_information = NULL (line 103)

SiteInformation Object

string $req_deleteAttValuesByAttId = "" (line 84)

SQL Request : Delete attribut value by attribut id

string $req_deleteAttValuesByPslId = "" (line 78)

SQL Request : Delete an attribut value by product slave id

string $req_exist = "" (line 90)

SQL Request : Test if exist

string $req_insertAttValue = "" (line 72)

SQL Request : Insert an attribut value

string $req_updateAttValue = "" (line 66)

SQL Request : Update attribut value

Methods
Constructor TAttributValue (line 129)

Constructor, init the requests and objects

TAttributValue TAttributValue ()
deleteByAttId (line 192)

Delete an attribut value by attribut id

  • return: TRUE on error
bool deleteByAttId (integer $p_att_id)
  • integer $p_att_id
deleteByPslId (line 168)

Delete an attribut value by the product slave id

  • return: TRUE on error
bool deleteByPslId (integer $p_psl_id)
  • integer $p_psl_id
exist (line 259)

Test if exist this attribut for this product slave

  • return: TRUE on error
bool exist (integer $p_ava_psl_id, integer $p_ava_att_id,  &$r_is_existing, bool $r_is_existing)
  • integer $p_ava_psl_id
  • integer $p_ava_att_id
  • bool $r_is_existing
  • &$r_is_existing
insert (line 297)

Insert an attribut value for an attribut name of a product slave

  • return: TRUE on error
bool insert (integer $p_ava_att_id, integer $p_ava_psl_id, string $p_ava_value)
  • integer $p_ava_att_id
  • integer $p_ava_psl_id
  • string $p_ava_value
isNotValidValue (line 156)

Parameter Integrity checker

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

Update the attribut value for an attrubt name of a product slave

  • return: TRUE on error
bool update (integer $p_ava_psl_id, integer $p_ava_att_id, string $p_ava_value)
  • integer $p_ava_psl_id
  • integer $p_ava_att_id
  • string $p_ava_value

Documentation generated on Tue, 25 Mar 2008 15:36:04 +0100 by phpDocumentor 1.3.2