Changes between Initial Version and Version 1 of Ticket #1303


Ignore:
Timestamp:
Oct 2, 2017, 3:43:23 PM (8 years ago)
Author:
Torsten Riemer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1303

    • Property Summary Prodgramcode Reste in der Klasse products.phpProgrammcode Reste in der Klasse products.php
  • Ticket #1303 – Description

    initial v1  
    11Beginnend bei Zeile 524 ff.
    2 
    3 ''/*get products image, imageinfo array*/''
    4 
    5   $products_image = $this->productImage($array[wiki:'products_image' products_image], $image);    $p_img = [http://www.php.net/substr substr]($products_image, [http://www.php.net/strlen strlen](DIR_WS_BASE));$img_attr = !'';if ([http://www.php.net/file_exists file_exists]($p_img)) {
    6     [http://www.php.net/list list]($width, $height, $type, $img_attr) = [http://www.php.net/getimagesize getimagesize]($p_img);
    7   }
    8 
     2{{{
     3    //get products image, imageinfo array
     4    $products_image = $this->productImage($array['products_image'], $image);   
     5    $p_img = substr($products_image, strlen(DIR_WS_BASE));
     6    $img_attr = '';
     7    if (file_exists($p_img)) {
     8      list($width, $height, $type, $img_attr) = getimagesize($p_img);
     9    }
     10}}}
    911Das Array $img_attr wird im Array $productDataAdds als
    1012
     
    1618
    1719Ist das nun ein Rest von früher oder ist noch eine Verwendung dafür geplant. Wenn nicht könnte man dies ja auskommentieren.
    18 
    19 ''/*get products image, imageinfo array*/''
    20 
    21   $products_image = $this->productImage($array[wiki:'products_image' products_image], $image);    ''/*$p_img = substr($products_image, strlen(DIR_WS_BASE));$img_attr = !'';if (file_exists($p_img)) {''
    22     list($width, $height, $type, $img_attr) = getimagesize($p_img);
    23   }*/
    24 
     20{{{
     21    //get products image, imageinfo array
     22    $products_image = $this->productImage($array['products_image'], $image);   
     23    /*
     24    $p_img = substr($products_image, strlen(DIR_WS_BASE));
     25    $img_attr = '';
     26    if (file_exists($p_img)) {
     27      list($width, $height, $type, $img_attr) = getimagesize($p_img);
     28    }
     29    */
     30}}}
    2531Man spart sich ja zumindest Zugriffe auf die Platte ( und damit  Ausführungszeit ) ,die Funktion "buildDataArray" wird ja recht oft  verwendet.