TProductSlaveManage the product slaves
Located in /core/internal_components/admin_sites/t_product/t_productslave.class.php (line 65)
bool
getCountSelectedByPmaId
(integer $p_pma_id, integegr $p_excluded_psl_id, &$r_count_selected, integer $r_count_selected)
bool
getIdsByPslReference
(string $p_psl_reference, &$r_psl_id, &$r_pma_id, integer $r_psl_id, integer $r_pma_id)
bool
getListPslIdPslReferencePmaTitleWithActionMethodManual
( &$r_array_psl_id, array $r_array_psl_id)
bool
insert
(array $p_new_psl_img, integer $p_psl_pma_id, float $p_psl_tax_included_price, string $p_psl_reference, integer $p_psl_stock, float $p_psl_weight, string $p_psl_firstselected, float $p_psl_buying_price, string $p_pic_desc, &$r_psl_id, [string $p_is_from_import = false], [integer $p_psl_sup_id = 0], [integer $p_psl_stock_alert = 0], integer $r_psl_id)
bool
update
(array $p_new_psl_img, integer $p_psl_pma_id, integer $p_psl_id, array $p_array_db_values, [bool $p_is_from_import = false])
bool
xIsUniqueReference
(string $p_psl_reference, &$r_bool_result, [integer $p_excluding_psl_id = 0], bool $r_bool_result)
string
$m_dynamique_part
= "|DYN_REQU|" (line 72)
A marker to replace by parameters in requests
DbConnexion
$m_object_dbconnexion
= NULL (line 223)
Database Connexion object
siteInformation
$m_object_siteinformation
= NULL (line 229)
SiteInformation Object
TAttributValue
$m_object_tattributvalue
= NULL (line 235)
TAttributValue Object
mixed
$m_object_tpicture
= NULL (line 251)
TProductMaster
$m_object_tproductmaster
= NULL (line 257)
TProductMaster
integer
$m_undefined_stock_alert
= 0 (line 270)
Value for stock alert if supplier are not defined
integer
$m_undefined_supplier_id
= 0 (line 264)
Value for supplier id if supplier are not defined
string
$req_add_stock
= "
SQL Request : Add stock
string
$req_check_sufficient_stock
= "" (line 216)
SQL Request : Check if we must send alert for low stock
string
$req_count_manual
= "select count(*) from t_productslave where psl_action_method='MANUAL';" (line 170)
SQL Request : Select count
string
$req_count_reference
= "select count(*) from t_productslave where psl_reference = '%s' and psl_id <> %d;" (line 158)
SQL Request : Count reference
string
$req_count_selected_by_pma_id
= "select count(*) from t_productslave where psl_pma_id = %d and psl_id <> %d and psl_firstselected = 'YES';" (line 164)
SQL Request : Select by product master id
string
$req_delete
= "delete from t_productslave where psl_id = %d;" (line 126)
SQL Request : Delete
string
$req_delete_stock
= "
SQL Request : Delete stock
string
$req_delete_supplier
=
SQL Request : Delete all supplier information
string
$req_get_stock
= "
SQL Request : Get stock
string
$req_insert
= "INSERT INTO t_productslave(psl_pic_id_little, psl_pic_id_medium, psl_pic_id_full, psl_pma_id, psl_tax_included_price, psl_reference, psl_stock, psl_weight, psl_firstselected, psl_buying_price, psl_sup_id, psl_stock_alert) VALUES(%d, %d, %d, %d, |psltaxincludedpricetype|, '%s', @@pslstock@@, %f, '%s', %f, %d, %d);" (line 78)
SQL Request : Insert
string
$req_insert_from_import
= "INSERT INTO t_productslave(psl_pic_id_little, psl_pic_id_medium, psl_pic_id_full, psl_pma_id, psl_tax_included_price, psl_reference, psl_stock, psl_weight, psl_firstselected, psl_buying_price, psl_action_method) VALUES(%d, %d, %d, %d, |psltaxincludedpricetype|, '%s', @@pslstock@@, %f, '%s', %f, 'IMPORT');" (line 84)
SQL Request : Insert from import
string
$req_select
= "select psl_id, psl_pic_id_little, psl_pic_id_medium, psl_pic_id_full, psl_pma_id, psl_tax_included_price, psl_reference, psl_weight, psl_firstselected, psl_buying_price from t_productslave where psl_id = %d;" (line 90)
SQL Request : Select
string
$req_select_all
= "select psl_id, psl_pic_id_little, psl_pic_id_medium, psl_pic_id_full, psl_pma_id, psl_tax_included_price, psl_reference, psl_weight, psl_firstselected, psl_buying_price from t_productslave ;" (line 96)
SQL Request : Select all
string
$req_select_by_pma_id
= "select psl_id, psl_pic_id_little, psl_pic_id_medium, psl_pic_id_full, psl_pma_id, psl_tax_included_price, psl_reference, psl_weight, psl_firstselected, psl_buying_price from t_productslave where psl_pma_id = %d;" (line 102)
SQL Request : Select by pma id
string
$req_select_ids_by_psl_reference
= "select psl_id, psl_pma_id from t_productslave where psl_reference ='%s';" (line 108)
SQL Request : Select by product slave reference
string
$req_select_psl_id_action_method_manual
= "" (line 120)
SQL Request : Select product slave by action method manual
string
$req_select_stock
= "SELECT psl_stock FROM t_productslave WHERE psl_id=%d;" (line 114)
SQL Request : Select stock
string
$req_update
= "update t_productslave set psl_pic_id_little=%d , psl_pic_id_medium=%d, psl_pic_id_full=%d, psl_pma_id=%d,
SQL Request : Update
string
$req_update_from_import
= "update t_productslave set psl_pic_id_little=%d , psl_pic_id_medium=%d, psl_pic_id_full=%d, psl_pma_id=%d, psl_action_method='IMPORT',
SQL Request : Update from input
string
$req_update_to_action_method_manual
= "update t_productslave set psl_action_method='MANUAL' where psl_action_method='IMPORT';" (line 152)
SQL Request : Update to action method manual
string
$req_update_to_zero_pictures
= "update t_productslave set psl_pic_id_little=%d , psl_pic_id_medium=0, psl_pic_id_full=0 where psl_id = %d ;" (line 146)
SQL Request : Update to zero pictures
Constructor, init the requests and objects
Probe to detect if stock are low for selected product slave
Delete stock for product
Delete all link with a specified supplier We replace supplier id by undefined supplier id
Delete the picture of this slave
Get a slave
Get count action with method manual
Get count selected by productm aster id
Get list of id by reference
Get list
Get list of product salves with action method manual
Add stock for product
Insert a product slave
Insert or update a slave, attribut, picture from post
Parameter Integrity checker
Parameter Integrity checker
Parameter Integrity checker
Parameter Integrity checker
Parameter Integrity checker
Parameter Integrity checker
Parameter Integrity checker
Parameter Integrity checker
Update a product slave
Update all products to method manual
Valid stock quantity
Get all
Parameter Integrity checker
Is unique reference
Update stock for a product slave list
Update the picture and set to zero
Check integrity
Documentation generated on Tue, 25 Mar 2008 15:37:14 +0100 by phpDocumentor 1.3.2