Countdown

This is the Countdown class, a macro class for the productViewHelper.

The purpose of this class is to encapsulate the logic that calculates the view parameters for the product's countdown.

Tags
see
Countdown::getViewParameters()

Table of Contents

CALLBACK_GO_BACK  = 'goBack'
CALLBACK_RELOAD  = 'reload'
EVENT_TIME_AVAILABLE_DATE  = 'availableDate'
EVENT_TIME_END_OFFER_DATE  = 'endOfferDate'
$callback  : string
$categoryId  : int|null
$endDate  : DateTime|null
$eventTime  : string
$product  : Product|null
$template  : string|null
__construct() Constructor method for Countdown class.  : mixed
getViewParameters() This method returns all calculated arguments and new parameters for ProductViewHelper.php  : array<string|int, mixed>
getProperties() Return macro use properties  : array<string|int, mixed>

Constants

CALLBACK_GO_BACK

public mixed CALLBACK_GO_BACK = 'goBack'

CALLBACK_RELOAD

public mixed CALLBACK_RELOAD = 'reload'

EVENT_TIME_AVAILABLE_DATE

public mixed EVENT_TIME_AVAILABLE_DATE = 'availableDate'

EVENT_TIME_END_OFFER_DATE

public mixed EVENT_TIME_END_OFFER_DATE = 'endOfferDate'

Properties

$callback

public string $callback = self::CALLBACK_RELOAD

$categoryId

public int|null $categoryId = null

$endDate

public DateTime|null $endDate = null

$eventTime

public string $eventTime = self::EVENT_TIME_END_OFFER_DATE

$product

public Product|null $product = null

$template

public string|null $template = null

Methods

__construct()

Constructor method for Countdown class.

public __construct(array<string|int, mixed> $arguments, Language $languageSheet) : mixed
Parameters
$arguments : array<string|int, mixed>
$languageSheet : Language
Tags
see
Countdown
Return values
mixed

getViewParameters()

This method returns all calculated arguments and new parameters for ProductViewHelper.php

public getViewParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>

getProperties()

Return macro use properties

protected getProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results