Sunnysideup\Ecommerce\ProductsAndGroups\Applyers\ProductDisplayer
provides data on the user.
Synopsis
class ProductDisplayer
extends BaseApplyer
{
- // Inherited constants from BaseApplyer
- const DEFAULT_NAME = 'default';
- const SQL_PARAM_PLACEHOLDER = '[[PARAMS_GO_HERE]]';
- // members
- private static array $options = ;
- // Inherited members from BaseApplyer
- protected ProductGroup $baseListOwner;
- protected FinalProductList $finalProductList;
- protected DataList $products;
- protected string $selectedOption;
- protected boolean $applied;
- protected array|string $selectedOptionParams;
- // methods
- public void apply()
- // Inherited methods from BaseApplyer
- public void __construct()
- public abstract BaseApplyer apply()
- public void getOptions()
- public void getProducts()
- public void getSelectedOption()
- public void getSelectedOptionParams()
- public void getOptionsMap()
- public void getTitle()
- public array|string getSql()
- public void getRequiresData()
- public void IsShowFullList()
- public mixed checkOption()
- protected array|string sqlPlaceholderReplacer()
- protected void applyStart()
- protected void applyEnd()
Hierarchy
Constants
Name | Value |
---|---|
DEFAULT_NAME | 'default' |
SQL_PARAM_PLACEHOLDER | '[[PARAMS_GO_HERE]]' |
Members
private
- $options
—
array
make sure that these do not exist as a URLSegment.
protected
- $applied
- $baseListOwner
—
Sunnysideup\Ecommerce\Pages\ProductGroup
a product group that creates the base list. - $finalProductList
—
Sunnysideup\Ecommerce\ProductsAndGroups\Builders\FinalProductList
final product list object, always present. - $products — SilverStripe\ORM\DataList
- $selectedOption — string
- $selectedOptionParams — Sunnysideup\Ecommerce\ProductsAndGroups\Applyers\array|string
Methods
public
Inherited from Sunnysideup\Ecommerce\ProductsAndGroups\Applyers\BaseApplyer
protected
- applyEnd()
- applyStart()
- sqlPlaceholderReplacer() — get the sql for an option.
public
- IsShowFullList() — get the sql for an option.
- apply() — manipulates the product lists.
- checkOption() — check for one option. If no return value is specified then all of the options are returned.
- getOptions()
- getOptionsMap() — dropdown list of options.
- getProducts()
- getRequiresData() — get the UsesParamData for an option.
- getSelectedOption()
- getSelectedOptionParams()
- getSql() — get the sql for an option.
- getTitle() — get the title for an option.