1<?php
2
3
4namespace ComboStrap;
5
6
7class StartDate extends MetadataDateTime
8{
9
10    public const PROPERTY_NAME = "date_start";
11
12    public static function createFromPage(Page $page)
13    {
14        return (new StartDate())
15            ->setResource($page);
16    }
17
18    public function getTab(): string
19    {
20        return MetaManagerForm::TAB_TYPE_VALUE;
21    }
22
23    public function getDescription(): string
24    {
25        return "The start date of an event";
26    }
27
28    public function getLabel(): string
29    {
30        return "Start Date";
31    }
32
33    static public function getName(): string
34    {
35        return self::PROPERTY_NAME;
36    }
37
38    public function getPersistenceType(): string
39    {
40        return Metadata::PERSISTENT_METADATA;
41    }
42
43    public function getMutable(): bool
44    {
45        return true;
46    }
47
48    public function getDefaultValue()
49    {
50        return null;
51    }
52
53    public function getCanonical(): string
54    {
55        return PageType::EVENT_TYPE;
56    }
57
58
59}
60