Sunnysideup\Ecommerce\Forms\ProductSearchForm
Product search form.
Synopsis
class ProductSearchForm
extends Form
{
- // members
- protected array $rawData = ;
- protected array $cleanedData = ;
- protected ProductGroup $baseListOwner;
- protected string $additionalGetParameters = '';
- private static $default_sort = ProductSearchFilter::KEY_FOR_SORTER;
- private static bool $include_price_filters = true;
- // methods
- public void __construct()
- public void forTemplate()
- public void setAdditionalGetParameters()
- public void setBaseListOwner()
- public void saveDataToSession()
- public void doProductSearchForm()
- protected void runFullProcessInner()
- protected void doProcessResults()
- protected void getVariableContainingSearchParams()
- protected void getVariableContainingSortParam()
- protected void hasOnlyThisSection()
- protected ProductGroup getResultsPage()
- protected void defaultSort()
- protected void getResultsPageLink()
- protected void checkForInternalItemID()
- protected void checkForOneProductTitleMatch()
- protected void checkForOneCategoryTitleMatch()
Hierarchy
Extends
- SilverStripe\Forms\Form
Members
private
- $default_sort
- $include_price_filters — Sunnysideup\Ecommerce\Forms\bool
protected
- $additionalGetParameters
—
string
get parameters added to the link you dont need to start them with & or ? e.g. - $baseListOwner
—
Sunnysideup\Ecommerce\Pages\ProductGroup
a product group that creates the base list. - $cleanedData — array
- $rawData — array
Methods
protected
- checkForInternalItemID()
- checkForOneCategoryTitleMatch()
- checkForOneProductTitleMatch()
- defaultSort()
- doProcessResults() — finalise results.
- getResultsPage()
- getResultsPageLink()
- getVariableContainingSearchParams()
- getVariableContainingSortParam()
- hasOnlyThisSection()
- runFullProcessInner()
public
- __construct()
- doProductSearchForm()
- forTemplate()
- saveDataToSession() — saves the form into session.
- setAdditionalGetParameters()
- setBaseListOwner()