public function process()
 {
     $product_image_links = $this->get_product_image_links();
     #print_r($product_image_links);
     #foreach (
     #	$product_image_links
     #	as
     #	$product_image_link
     #) {
     #	TrackitStockManagement_ImageFilesHelper
     #		::save_product_image_link(
     #			$product_image_link['product_id'],
     #			$product_image_link['image_order'],
     #			$product_image_link['image_name']
     #		);
     #}
     TrackitStockManagement_ImageFilesHelper::save_product_image_links($product_image_links);
 }
Exemplo n.º 2
0
#if ($debug) {
#	CodeAnalysis_MemoryHelper
#		::cli_print_memory_usage('Created config manager');
#}
/*
 * Find out if there is an instance of this script already running.
 */
$process_image_text_files_lock_file = TrackitStockManagement_FeedFilesHelper::get_process_image_text_files_lock_file();
if ($process_image_text_files_lock_file->is_locked()) {
    throw new Exception('The process-image-files script is locked!');
} else {
    $process_image_text_files_lock_file->lock();
    /*
     * Get the list of image files to process.
     */
    $unprocessed_image_text_files = TrackitStockManagement_ImageFilesHelper::get_unprocessed_image_text_files();
    if ($debug) {
        CodeAnalysis_MemoryHelper::cli_print_memory_usage('Created unprocessed image files array');
    }
    $files_to_process_count = count($unprocessed_image_text_files);
    #$cache_dir_name = $tsm_cm->get_cache_dir_name();
    #
    #$fields = array();
    #
    #$fields[] = array(
    #	'name' => 'site_id',
    #	'chars' => 3,
    #	'quotes' => 'n'
    #);
    #
    #$fields[] = array(
Exemplo n.º 3
0
<?php

/**
 * The main .INC for the reset-image-files script.
 *
 * @copyright 2008-05-15, Robert Impey
 */
TrackitStockManagement_ImageFilesHelper::reset_image_files();