product Class Reference

Control init et gestion des data product. More...

List of all members.

Public Member Functions

  • ret_modules ()
    Module ACA.
  • check_action ($class='', $actions='')
    execute la capture des actions par les modlues
  • get_header ($class='', $actions='')
    traitement block header des module Display block header modules
  • after_check_action ($class='', $actions='')
    after_check_action
  • display_view ($pID, $class='', $exclude=array())
    after_check_action

Static Public Member Functions

Public Attributes

Static Public Attributes

Protected Member Functions

Static Protected Member Functions

Static Protected Attributes


Detailed Description

Control init et gestion des data product.

Assure tous les appels vers les class enfants, Data et Modules.

Definition at line 33 of file driver.product.php.


Constructor & Destructor Documentation

product::__construct ( full  )  [protected]

Definition at line 48 of file driver.product.php.

00048                                         {
00049     global $languages_id;
00050     productData::start();
00051     if($full) self::start_module();
00052   }


Member Function Documentation

product::after_check_action ( class = '',
actions = '' 
)

after_check_action

Parameters:
$class string
$actions array

Definition at line 101 of file driver.product.php.

00101 { $pdm=self::start_module(); return $pdm->after_check_action($class,$actions);}

product::check_action ( class = '',
actions = '' 
)

execute la capture des actions par les modlues

Parameters:
$class string
$actions array

Definition at line 86 of file driver.product.php.

00086 { $pdm=self::start_module(); return $pdm->check_action($class,$actions);}

product::display_view ( pID,
class = '',
exclude = array() 
)

after_check_action

Parameters:
$pID int
$class string
$exclude array

Definition at line 109 of file driver.product.php.

00109 { $pdm=self::start_module(); return $pdm->display_view($pID,$class,$exclude);}

product::get_adjust_price ( product_array  )  [static]

adjust price products , depend class price, execute by productData

Parameters:
$product_array array

Definition at line 116 of file driver.product.php.

Referenced by price::calcul_price().

00116 { $pdm=self::start_module(); return $pdm->adjust_price($product_array);}

product::get_attributes_weight ( products_id,
attributes = array() 
) [static]

calcul du poids avec attribute

Parameters:
$products_id int
$attributes array
Returns:
float

Definition at line 189 of file driver.product.php.

Referenced by shoppingCart::get_products().

00189 {return productData::get_attributes_weight($products_id, $attributes); }

static product::get_extra_product ( products_id  )  [static]

Definition at line 192 of file driver.product.php.

00192 {return productData::get_extra_product($products_id); }

product::get_has_product_attributes ( id  )  [static]

true/false si attribut associé a ce produits

Parameters:
$id int

Definition at line 173 of file driver.product.php.

Referenced by tep_has_product_attributes().

product::get_header ( class = '',
actions = '' 
)

traitement block header des module Display block header modules

Parameters:
$class string
$actions array

Definition at line 94 of file driver.product.php.

00094 { $pdm=self::start_module(); return $pdm->get_header($class,$actions);}

product::get_item ( id  )  [static]

appel d'un produit par son id, il sera recupere dans la pile du cache, ou via une requet sql

Parameters:
$id 
Returns:
object

Definition at line 145 of file driver.product.php.

Referenced by pad_base::__construct(), shoppingCart::add_cart(), price::get_db_products_price(), shoppingCart::get_products(), price::get_tax_rates_from_pid(), in_obj_also_purchased_products(), in_obj_new_products(), in_obj_product_listing(), in_obj_upcoming_products(), product_info(), and tep_get_products_name().

00145 { return productData::get_item($id); }

product::get_option_data ( product_array  )  [static]

adjust products, depend class price, execute by productData

Parameters:
$product_array array

Definition at line 122 of file driver.product.php.

Referenced by productData::statment_query().

00122 { $pdm=self::start_module(); return $pdm->get_option_data($product_array);}

product::get_product_attribut_info ( id  )  [static]

appel info attribute product , renvoi tableau d'information

retourne le nombre de produits en stock, en fonction de ces caratèristiques,

Parameters:
$id int products id
  • si produit sans attribut alors retour nombre de produits,
  • si produit + attribute, alors retour du stock pour cette association attributs produits
    Parameters:
    $id int id produit
    Returns:
    int

Definition at line 158 of file driver.product.php.

Referenced by product_attribut_info().

product::get_product_attribut_price ( products_id,
attributes = array() 
) [static]

calcul prix produit avec attribute

Parameters:
$products_id int
$attributes array
Returns:
float

Definition at line 181 of file driver.product.php.

Referenced by price::get_attributes_price().

00181 {return productData::get_product_attribut_price($products_id, $attributes); }

product::get_product_path ( id  )  [static]

generation du cPath d'un produits

Parameters:
$id int
Returns:
string cPath

Definition at line 152 of file driver.product.php.

Referenced by tep_get_product_path().

00152 { return productData::get_product_path($id); }

static product::get_products_stock ( id,
attributes = array() 
) [static]

Definition at line 167 of file driver.product.php.

Referenced by tep_get_products_stock().

00167 { return productData::get_products_stock($id, $attributes); }

product::get_query ( id = '',
search = '',
exclude = '',
option = '' 
) [static]

Data function.

generation automatique de requetes pour exraire les données des produits. Cet appel est mis en cache afin d'optimiser les requetes, de maniére incremental pour chaque produit, et par produits.

Parameters:
$id integer id
$search string champs qui sera recherché dans tous les champs de la db
$exclude tableau d'ecxlusion de produits par id
$option array option passé par couple key/values
Returns:
object

Definition at line 138 of file driver.product.php.

00138 { global $languages_id; return productData::get_query($id,$search,$exclude,$option); }

static product::getInstance ( full = false  )  [static]

Definition at line 60 of file driver.product.php.

Referenced by resetInstance(), and start_module().

00060                                                   {
00061     if(self::$_instance == null) self::$_instance = new self($full);
00062     return self::$_instance;
00063   }

static product::resetInstance (  )  [static]

Definition at line 65 of file driver.product.php.

00065                                         {
00066     self::$_instance = null;
00067     return self::getInstance();
00068   }

product::ret_modules (  ) 

Module ACA.

Retour tableau des modules type products actif

Returns:
plusieurs modules via array(object)

Definition at line 79 of file driver.product.php.

00079 { self::start_module(); return self::$modules;}

static product::start_module (  )  [static, protected]

Definition at line 54 of file driver.product.php.

Referenced by __construct(), after_check_action(), check_action(), display_view(), get_adjust_price(), get_header(), get_option_data(), and ret_modules().

00054                                           {
00055     $pdm=productModule::getInstance();
00056     self::$modules=$pdm->ret_modules();
00057     return $pdm;
00058   }


Member Data Documentation

product::$_instance [static, protected]

object

Definition at line 36 of file driver.product.php.

product::$modules [static]

Definition at line 38 of file driver.product.php.

product::$pile_img

Pile des images du porduit.

Parameters:
array 

Definition at line 44 of file driver.product.php.


The documentation for this class was generated from the following file: