1 | <?php namespace Anomaly\SettingsModule\Setting; |
||
18 | class SettingModel extends SettingsSettingsEntryModel implements SettingInterface |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Return the value field. |
||
23 | * |
||
24 | * @return FieldType |
||
25 | */ |
||
26 | public function field() |
||
37 | |||
38 | /** |
||
39 | * Get the key. |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getKey() |
||
47 | |||
48 | /** |
||
49 | * Set the key. |
||
50 | * |
||
51 | * @param $key |
||
52 | * @return $this |
||
53 | */ |
||
54 | public function setKey($key) |
||
60 | |||
61 | /** |
||
62 | * Get the value. |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getValue() |
||
70 | |||
71 | /** |
||
72 | * Set the value attribute. |
||
73 | * |
||
74 | * @param $value |
||
75 | * @return $this |
||
76 | */ |
||
77 | public function setValue($value) |
||
83 | |||
84 | /** |
||
85 | * Set the value. |
||
86 | * |
||
87 | * @param $value |
||
88 | * @return $this |
||
89 | */ |
||
90 | protected function setValueAttribute($value) |
||
96 | |||
97 | /** |
||
98 | * Get the value attribute. |
||
99 | * |
||
100 | * @return mixed |
||
101 | */ |
||
102 | protected function getValueAttribute() |
||
110 | |||
111 | /** |
||
112 | * Get the field type's presenter |
||
113 | * for a given field slug. |
||
114 | * |
||
115 | * We're overriding this to catch |
||
116 | * the "value" key. |
||
117 | * |
||
118 | * @param $fieldSlug |
||
119 | * @return FieldTypePresenter |
||
120 | */ |
||
121 | public function getFieldTypePresenter($fieldSlug) |
||
129 | } |
||
130 |