@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Fulltext search index for shop buyables |
|
| 4 | - * |
|
| 5 | - * @author Mark Guinn <[email protected]> |
|
| 6 | - * @date 08.29.2013 |
|
| 7 | - * @package shop_search |
|
| 8 | - */ |
|
| 3 | + * Fulltext search index for shop buyables |
|
| 4 | + * |
|
| 5 | + * @author Mark Guinn <[email protected]> |
|
| 6 | + * @date 08.29.2013 |
|
| 7 | + * @package shop_search |
|
| 8 | + */ |
|
| 9 | 9 | class ShopSearch extends Object |
| 10 | 10 | { |
| 11 | 11 | const FACET_TYPE_LINK = 'link'; |
@@ -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 | /** |
@@ -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,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', |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Adapter that will use MySQL's full text search features. |
|
| 4 | - * |
|
| 5 | - * @author Mark Guinn <[email protected]> |
|
| 6 | - * @date 11.13.2013 |
|
| 7 | - * @package shop_search |
|
| 8 | - * @subpackage adapters |
|
| 9 | - */ |
|
| 3 | + * Adapter that will use MySQL's full text search features. |
|
| 4 | + * |
|
| 5 | + * @author Mark Guinn <[email protected]> |
|
| 6 | + * @date 11.13.2013 |
|
| 7 | + * @package shop_search |
|
| 8 | + * @subpackage adapters |
|
| 9 | + */ |
|
| 10 | 10 | class ShopSearchMysql extends Object implements ShopSearchAdapter |
| 11 | 11 | { |
| 12 | 12 | /** |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Silverstripe report for searchs |
|
| 4 | - * |
|
| 5 | - * @author Mark Guinn <[email protected]> |
|
| 6 | - * @date 09.24.2014 |
|
| 7 | - * @package apluswhs.com |
|
| 8 | - * @subpackage |
|
| 9 | - */ |
|
| 3 | + * Silverstripe report for searchs |
|
| 4 | + * |
|
| 5 | + * @author Mark Guinn <[email protected]> |
|
| 6 | + * @date 09.24.2014 |
|
| 7 | + * @package apluswhs.com |
|
| 8 | + * @subpackage |
|
| 9 | + */ |
|
| 10 | 10 | class SearchTermsReport extends ShopPeriodReport |
| 11 | 11 | { |
| 12 | 12 | protected $title = "Search Terms"; |