@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Interface for shop search drivers. |
|
4 | - * |
|
5 | - * @author Mark Guinn <[email protected]> |
|
6 | - * @date 09.03.2013 |
|
7 | - * @package shop_search |
|
8 | - */ |
|
3 | + * Interface for shop search drivers. |
|
4 | + * |
|
5 | + * @author Mark Guinn <[email protected]> |
|
6 | + * @date 09.03.2013 |
|
7 | + * @package shop_search |
|
8 | + */ |
|
9 | 9 | interface ShopSearchAdapter |
10 | 10 | { |
11 | 11 | /** |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * VERY simple adapter to use DataList and :PartialMatch searches. Bare mininum |
|
4 | - * that will probably get terrible results but doesn't require any |
|
5 | - * additional setup. |
|
6 | - * |
|
7 | - * @author Mark Guinn <[email protected]> |
|
8 | - * @date 09.03.2013 |
|
9 | - * @package shop_search |
|
10 | - */ |
|
3 | + * VERY simple adapter to use DataList and :PartialMatch searches. Bare mininum |
|
4 | + * that will probably get terrible results but doesn't require any |
|
5 | + * additional setup. |
|
6 | + * |
|
7 | + * @author Mark Guinn <[email protected]> |
|
8 | + * @date 09.03.2013 |
|
9 | + * @package shop_search |
|
10 | + */ |
|
11 | 11 | class ShopSearchSimple extends Object implements ShopSearchAdapter |
12 | 12 | { |
13 | 13 | /** |
@@ -191,9 +191,9 @@ discard block |
||
191 | 191 | |
192 | 192 | |
193 | 193 | /** |
194 | - * Overrides the parent to add a field for autocomplete |
|
195 | - * @return HTMLText |
|
196 | - */ |
|
194 | + * Overrides the parent to add a field for autocomplete |
|
195 | + * @return HTMLText |
|
196 | + */ |
|
197 | 197 | function getTypes() { |
198 | 198 | $val = parent::getTypes(); |
199 | 199 | if (!$val || !is_object($val)) return $val; |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | |
467 | 467 | foreach ($facets as $name => $spec) { |
468 | 468 | // With our current implementation, "range" facets aren't true facets in solr terms. |
469 | - // They're just a type of filter which can be handled elsewhere. |
|
469 | + // They're just a type of filter which can be handled elsewhere. |
|
470 | 470 | // For the other types we just ignore the rest of the spec and let Solr do its thing |
471 | 471 | if ($spec['Type'] != ShopSearch::FACET_TYPE_RANGE && isset($this->fieldMap[$name])) { |
472 | 472 | $params['facet.field'] = $this->fieldMap[$name]; |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Extension for Product that allows static attributes in the same way |
|
4 | - * they're used for variations. I'm separating this out because it will |
|
5 | - * probably be useful in other projects. |
|
6 | - * |
|
7 | - * @author Mark Guinn <[email protected]> |
|
8 | - * @date 01.21.2014 |
|
9 | - * @package Daywind |
|
10 | - * @subpackage extensions |
|
11 | - */ |
|
3 | + * Extension for Product that allows static attributes in the same way |
|
4 | + * they're used for variations. I'm separating this out because it will |
|
5 | + * probably be useful in other projects. |
|
6 | + * |
|
7 | + * @author Mark Guinn <[email protected]> |
|
8 | + * @date 01.21.2014 |
|
9 | + * @package Daywind |
|
10 | + * @subpackage extensions |
|
11 | + */ |
|
12 | 12 | class HasStaticAttributes extends DataExtension |
13 | 13 | { |
14 | 14 | private static $many_many = array( |
@@ -57,14 +57,14 @@ |
||
57 | 57 | |
58 | 58 | public static $disable_building = false; |
59 | 59 | |
60 | - /** |
|
61 | - * @return array |
|
62 | - */ |
|
63 | - public static function get_classes_with_vfi() { |
|
64 | - $vfi_def = Config::inst()->get('VirtualFieldIndex', 'vfi_spec'); |
|
65 | - if (!$vfi_def || !is_array($vfi_def)) return array(); |
|
66 | - return array_keys($vfi_def); |
|
67 | - } |
|
60 | + /** |
|
61 | + * @return array |
|
62 | + */ |
|
63 | + public static function get_classes_with_vfi() { |
|
64 | + $vfi_def = Config::inst()->get('VirtualFieldIndex', 'vfi_spec'); |
|
65 | + if (!$vfi_def || !is_array($vfi_def)) return array(); |
|
66 | + return array_keys($vfi_def); |
|
67 | + } |
|
68 | 68 | |
69 | 69 | /** |
70 | 70 | * Define extra db fields and indexes. |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * If the queued jobs module is installed, this will be used instead of |
|
4 | - * updating vfi's in onBeforeWrite. |
|
5 | - * |
|
6 | - * @author Mark Guinn <[email protected]> |
|
7 | - * @date 07.02.2015 |
|
8 | - * @package shop_search |
|
9 | - * @subpackage helpers |
|
10 | - */ |
|
3 | + * If the queued jobs module is installed, this will be used instead of |
|
4 | + * updating vfi's in onBeforeWrite. |
|
5 | + * |
|
6 | + * @author Mark Guinn <[email protected]> |
|
7 | + * @date 07.02.2015 |
|
8 | + * @package shop_search |
|
9 | + * @subpackage helpers |
|
10 | + */ |
|
11 | 11 | if(!interface_exists('QueuedJob')) return; |
12 | 12 | |
13 | 13 | class VirtualFieldIndexQueuedJob extends AbstractQueuedJob implements QueuedJob |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Rebuilds all VirtualFieldIndexes |
|
4 | - * |
|
5 | - * @author Mark Guinn <[email protected]> |
|
6 | - * @date 9.26.13 |
|
7 | - * @package shop_search |
|
8 | - * @subpackage tasks |
|
9 | - */ |
|
3 | + * Rebuilds all VirtualFieldIndexes |
|
4 | + * |
|
5 | + * @author Mark Guinn <[email protected]> |
|
6 | + * @date 9.26.13 |
|
7 | + * @package shop_search |
|
8 | + * @subpackage tasks |
|
9 | + */ |
|
10 | 10 | class BuildVFI extends BuildTask |
11 | 11 | { |
12 | 12 | protected $title = 'Rebuild Virtual Field Indexes'; |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Adds some methods to the Product class to list out all categories |
|
4 | - * a product is in. This is generally useful, but also really helps |
|
5 | - * with building search indexes. |
|
6 | - * |
|
7 | - * @author Mark Guinn <[email protected]> |
|
8 | - * @date 05.23.2014 |
|
9 | - * @package shop_search |
|
10 | - * @subpackage helpers |
|
11 | - */ |
|
3 | + * Adds some methods to the Product class to list out all categories |
|
4 | + * a product is in. This is generally useful, but also really helps |
|
5 | + * with building search indexes. |
|
6 | + * |
|
7 | + * @author Mark Guinn <[email protected]> |
|
8 | + * @date 05.23.2014 |
|
9 | + * @package shop_search |
|
10 | + * @subpackage helpers |
|
11 | + */ |
|
12 | 12 | class ProductCategoryHelperMethods extends DataExtension |
13 | 13 | { |
14 | 14 | /** |
@@ -380,7 +380,7 @@ |
||
380 | 380 | ->addInnerJoin('ProductAttributeType', '"Product_StaticAttributeTypes"."ProductAttributeTypeID" = "ProductAttributeType"."ID"') |
381 | 381 | ->addInnerJoin('Product_StaticAttributeValues', $baseTable.'."ID" = "Product_StaticAttributeValues"."ProductID"') |
382 | 382 | ->addInnerJoin('ProductAttributeValue', '"Product_StaticAttributeValues"."ProductAttributeValueID" = "ProductAttributeValue"."ID"' |
383 | - . ' AND "ProductAttributeValue"."TypeID" = "ProductAttributeType"."ID"') |
|
383 | + . ' AND "ProductAttributeValue"."TypeID" = "ProductAttributeType"."ID"') |
|
384 | 384 | ->setOrderBy(array( |
385 | 385 | '"ProductAttributeType"."Label"' => 'ASC', |
386 | 386 | '"ProductAttributeValue"."Sort"' => 'ASC', |