@@ 76-84 (lines=9) @@ | ||
73 | * |
|
74 | * @return array |
|
75 | */ |
|
76 | public function getStyles() { |
|
77 | $types = []; |
|
78 | ||
79 | foreach ($this->dbObject('Style')->enumValues() as $style) { |
|
80 | $types[$style] = $this->fieldLabel($style); |
|
81 | } |
|
82 | ||
83 | return $types; |
|
84 | } |
|
85 | ||
86 | /** |
|
87 | * @return string |
@@ 94-102 (lines=9) @@ | ||
91 | /** |
|
92 | * @return array |
|
93 | */ |
|
94 | public function getSliderTypes() { |
|
95 | $types = []; |
|
96 | ||
97 | foreach ($this->dbObject('Type')->enumValues() as $type) { |
|
98 | $types[$type] = $this->fieldLabel($type); |
|
99 | } |
|
100 | ||
101 | return $types; |
|
102 | } |
|
103 | ||
104 | /** |
|
105 | * @return \FieldList |