public static function save_product_image_link($product_id, $image_order, $image_name) { $pk_product_id = TrackitStockManagement_ProductsHelper::get_id_for_product_id($product_id); $image_id = self::get_id_for_name($image_name); Database_ModifyingStatementHelper::apply_statement(new Database_SQLInsertStatement(<<<SQL INSERT INTO \thpi_trackit_stock_management_product_image_links SET \tproduct_id = {$pk_product_id}, \timage_id = {$image_id}, \tsort_order = {$image_order} SQL )); }
<?php /** * The main .INC for the reset-products script. * * @copyright 2008-04-24, Robert Impey */ TrackitStockManagement_ProductsHelper::reset_products();
public static function reset_deletion_files() { TrackitStockManagement_FeedFilesHelper::reset_deletion_files_processed_status(); TrackitStockManagement_ProductsHelper::restore_all_products(); }