Dynamic\Elements\CountDown\Elements\ElementCountDown
Class ElementCountDown
Synopsis
class ElementCountDown
extends BaseElement
{
- // members
- private static string $icon = 'font-icon-clock';
- private static string $singular_name = 'Countdown Element';
- private static string $plural_name = 'Countdown Elements';
- private static string $description = 'Displays a countdown to a specific date and time.';
- private static array $db = ;
- private static string $table_name = 'ElementCountDown';
- private ArrayData $client_config;
- // methods
- public string getSummary()
- public FieldList getCMSFields()
- protected array getTimezoneList()
- protected array provideBlockSchema()
- public string getType()
- public $this setClientConfig()
- public ArrayData getClientConfig()
- protected mixed encodeArrayValues()
- public ValidationResult validate()
Hierarchy
Extends
- DNADesign\Elemental\Models\BaseElement
Members
private
- $client_config — SilverStripe\View\ArrayData
- $db — array
- $description — string
- $icon — string
- $plural_name — string
- $singular_name — string
- $table_name — string
Methods
protected
- encodeArrayValues()
- getTimezoneList() — originally from https://davidhancock.co/2013/05/generating-a-list-of-timezones-with-php/
- provideBlockSchema()