@@ -4,93 +4,93 @@ |
||
| 4 | 4 | |
| 5 | 5 | class Arraybuilder |
| 6 | 6 | { |
| 7 | - public static $search; |
|
| 8 | - public static $location; |
|
| 7 | + public static $search; |
|
| 8 | + public static $location; |
|
| 9 | 9 | |
| 10 | - public function __construct() |
|
| 11 | - { |
|
| 12 | - $config = include('config/config.php'); |
|
| 10 | + public function __construct() |
|
| 11 | + { |
|
| 12 | + $config = include('config/config.php'); |
|
| 13 | 13 | self::$location = $config->location; |
| 14 | 14 | |
| 15 | - } |
|
| 15 | + } |
|
| 16 | 16 | |
| 17 | - public function setSizeSearch($size) |
|
| 18 | - { |
|
| 19 | - static::$search = array( |
|
| 20 | - 'locationNumber' => static::$location, |
|
| 21 | - 'criteria' => array( |
|
| 22 | - 'entry' => array( |
|
| 23 | - 'key'=> 'Size', |
|
| 24 | - 'value'=>$size |
|
| 25 | - ) |
|
| 26 | - ), |
|
| 27 | - 'options' => array( |
|
| 28 | - 'price' => array( |
|
| 29 | - 'cost'=>'1', |
|
| 30 | - 'retail'=>'1' |
|
| 31 | - ), |
|
| 32 | - 'availability' => array( |
|
| 33 | - 'local'=>'1' |
|
| 34 | - ), |
|
| 35 | - 'productSpec'=> array( |
|
| 36 | - 'entry'=> array( |
|
| 37 | - 'key'=>'SpeedRating' |
|
| 38 | - ), |
|
| 39 | - 'entry'=> array( |
|
| 40 | - 'key'=>'TemperatureRating' |
|
| 41 | - ) |
|
| 42 | - ), |
|
| 43 | - 'includeRebates'=>'1' |
|
| 44 | - ) |
|
| 45 | - ); |
|
| 17 | + public function setSizeSearch($size) |
|
| 18 | + { |
|
| 19 | + static::$search = array( |
|
| 20 | + 'locationNumber' => static::$location, |
|
| 21 | + 'criteria' => array( |
|
| 22 | + 'entry' => array( |
|
| 23 | + 'key'=> 'Size', |
|
| 24 | + 'value'=>$size |
|
| 25 | + ) |
|
| 26 | + ), |
|
| 27 | + 'options' => array( |
|
| 28 | + 'price' => array( |
|
| 29 | + 'cost'=>'1', |
|
| 30 | + 'retail'=>'1' |
|
| 31 | + ), |
|
| 32 | + 'availability' => array( |
|
| 33 | + 'local'=>'1' |
|
| 34 | + ), |
|
| 35 | + 'productSpec'=> array( |
|
| 36 | + 'entry'=> array( |
|
| 37 | + 'key'=>'SpeedRating' |
|
| 38 | + ), |
|
| 39 | + 'entry'=> array( |
|
| 40 | + 'key'=>'TemperatureRating' |
|
| 41 | + ) |
|
| 42 | + ), |
|
| 43 | + 'includeRebates'=>'1' |
|
| 44 | + ) |
|
| 45 | + ); |
|
| 46 | 46 | return static::$search; |
| 47 | - } |
|
| 47 | + } |
|
| 48 | 48 | |
| 49 | - public function setKeywordSearch($word) |
|
| 50 | - { |
|
| 51 | - static::$search = array( |
|
| 52 | - 'locationNumber' => static::$location, |
|
| 53 | - 'keywords' => $word, |
|
| 54 | - 'options' => array( |
|
| 55 | - 'images' => array( |
|
| 56 | - 'thumbnail'=>'1', |
|
| 57 | - 'small'=> '1', |
|
| 58 | - 'large'=> '1', |
|
| 59 | - ) |
|
| 60 | - ) |
|
| 61 | - ); |
|
| 49 | + public function setKeywordSearch($word) |
|
| 50 | + { |
|
| 51 | + static::$search = array( |
|
| 52 | + 'locationNumber' => static::$location, |
|
| 53 | + 'keywords' => $word, |
|
| 54 | + 'options' => array( |
|
| 55 | + 'images' => array( |
|
| 56 | + 'thumbnail'=>'1', |
|
| 57 | + 'small'=> '1', |
|
| 58 | + 'large'=> '1', |
|
| 59 | + ) |
|
| 60 | + ) |
|
| 61 | + ); |
|
| 62 | 62 | return static::$search; |
| 63 | - } |
|
| 63 | + } |
|
| 64 | 64 | |
| 65 | - public function setATDProductNumber($number) |
|
| 66 | - { |
|
| 67 | - static::$search = array( |
|
| 68 | - 'locationNumber' => static::$location, |
|
| 69 | - 'criteria' => array( |
|
| 70 | - 'entry'=>array( |
|
| 71 | - 'key'=>'ATDProductNumber', |
|
| 72 | - 'value'=>$number |
|
| 73 | - ) |
|
| 74 | - ), |
|
| 75 | - 'options' => array( |
|
| 76 | - 'images' => array( |
|
| 77 | - 'thumbnail'=> '1', |
|
| 78 | - 'small' => '1', |
|
| 79 | - 'large' => '1' |
|
| 80 | - ) |
|
| 81 | - ), |
|
| 82 | - 'productSpec'=> array( |
|
| 83 | - 'entry'=> array( |
|
| 84 | - 'key'=>'SpeedRating' |
|
| 85 | - ), |
|
| 86 | - 'entry'=> array( |
|
| 87 | - 'key'=>'TemperatureRating' |
|
| 88 | - ) |
|
| 89 | - ) |
|
| 65 | + public function setATDProductNumber($number) |
|
| 66 | + { |
|
| 67 | + static::$search = array( |
|
| 68 | + 'locationNumber' => static::$location, |
|
| 69 | + 'criteria' => array( |
|
| 70 | + 'entry'=>array( |
|
| 71 | + 'key'=>'ATDProductNumber', |
|
| 72 | + 'value'=>$number |
|
| 73 | + ) |
|
| 74 | + ), |
|
| 75 | + 'options' => array( |
|
| 76 | + 'images' => array( |
|
| 77 | + 'thumbnail'=> '1', |
|
| 78 | + 'small' => '1', |
|
| 79 | + 'large' => '1' |
|
| 80 | + ) |
|
| 81 | + ), |
|
| 82 | + 'productSpec'=> array( |
|
| 83 | + 'entry'=> array( |
|
| 84 | + 'key'=>'SpeedRating' |
|
| 85 | + ), |
|
| 86 | + 'entry'=> array( |
|
| 87 | + 'key'=>'TemperatureRating' |
|
| 88 | + ) |
|
| 89 | + ) |
|
| 90 | 90 | |
| 91 | - ); |
|
| 91 | + ); |
|
| 92 | 92 | return static::$search; |
| 93 | - } |
|
| 93 | + } |
|
| 94 | 94 | |
| 95 | 95 | |
| 96 | 96 | } |
| 97 | 97 | \ No newline at end of file |