| @@ 61-69 (lines=9) @@ | ||
| 58 | * |
|
| 59 | * @return array |
|
| 60 | */ |
|
| 61 | public function getVerticallyTypes() { |
|
| 62 | $types = []; |
|
| 63 | ||
| 64 | foreach ($this->dbObject('AlignY')->enumValues() as $alignType) { |
|
| 65 | $types[$alignType] = $this->fieldLabel($alignType); |
|
| 66 | } |
|
| 67 | ||
| 68 | return $types; |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|
| 72 | * Get localized types |
|
| @@ 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 |
|
| @@ 46-54 (lines=9) @@ | ||
| 43 | * |
|
| 44 | * @return array |
|
| 45 | */ |
|
| 46 | public function getHorizontallyTypes() { |
|
| 47 | $types = []; |
|
| 48 | ||
| 49 | foreach ($this->dbObject('AlignX')->enumValues() as $alignType) { |
|
| 50 | $types[$alignType] = $this->fieldLabel($alignType); |
|
| 51 | } |
|
| 52 | ||
| 53 | return $types; |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * Get localized types |
|
| @@ 110-118 (lines=9) @@ | ||
| 107 | /** |
|
| 108 | * @return array |
|
| 109 | */ |
|
| 110 | public function getSliderTypes() { |
|
| 111 | $types = []; |
|
| 112 | ||
| 113 | foreach ($this->dbObject('Type')->enumValues() as $type) { |
|
| 114 | $types[$type] = $this->fieldLabel($type); |
|
| 115 | } |
|
| 116 | ||
| 117 | return $types; |
|
| 118 | } |
|
| 119 | ||
| 120 | /** |
|
| 121 | * @return \FieldList |
|
| @@ 91-99 (lines=9) @@ | ||
| 88 | /** |
|
| 89 | * @return array |
|
| 90 | */ |
|
| 91 | public function getVideoTypes() { |
|
| 92 | $types = []; |
|
| 93 | ||
| 94 | foreach ($this->dbObject('Type')->enumValues() as $type) { |
|
| 95 | $types[$type] = $this->fieldLabel($type); |
|
| 96 | } |
|
| 97 | ||
| 98 | return $types; |
|
| 99 | } |
|
| 100 | ||
| 101 | /** |
|
| 102 | * @return FieldList |
|