@@ -202,7 +202,7 @@ |
||
| 202 | 202 | $findAnswer->delete(); |
| 203 | 203 | |
| 204 | 204 | $this->response = json_encode([ |
| 205 | - 'status' => 1, |
|
| 205 | + 'status' => 1, |
|
| 206 | 206 | 'message' => 'ok' |
| 207 | 207 | ]); |
| 208 | 208 | } |
@@ -29,8 +29,8 @@ discard block |
||
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * Pass properties from record construction |
|
| 33 | - */ |
|
| 32 | + * Pass properties from record construction |
|
| 33 | + */ |
|
| 34 | 34 | public function before() |
| 35 | 35 | { |
| 36 | 36 | $this->title = Serialize::getDecodeLocale($this->_record->title); |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * Form labels |
|
| 42 | - */ |
|
| 41 | + * Form labels |
|
| 42 | + */ |
|
| 43 | 43 | public function labels() |
| 44 | 44 | { |
| 45 | 45 | return [ |
@@ -50,8 +50,8 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * Validation rules |
|
| 54 | - */ |
|
| 53 | + * Validation rules |
|
| 54 | + */ |
|
| 55 | 55 | public function rules() |
| 56 | 56 | { |
| 57 | 57 | return [ |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * Pass properties from default record values |
|
| 42 | - */ |
|
| 41 | + * Pass properties from default record values |
|
| 42 | + */ |
|
| 43 | 43 | public function before() |
| 44 | 44 | { |
| 45 | 45 | if ($this->_record->id === null) { |
@@ -74,8 +74,8 @@ discard block |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * Form labels |
|
| 78 | - */ |
|
| 77 | + * Form labels |
|
| 78 | + */ |
|
| 79 | 79 | public function labels() |
| 80 | 80 | { |
| 81 | 81 | return [ |
@@ -93,8 +93,8 @@ discard block |
||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | - * Validation rules |
|
| 97 | - */ |
|
| 96 | + * Validation rules |
|
| 97 | + */ |
|
| 98 | 98 | public function rules() |
| 99 | 99 | { |
| 100 | 100 | $rules = [ |
@@ -15,8 +15,8 @@ discard block |
||
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * Example of usage magic labels for future form helper usage |
|
| 19 | - */ |
|
| 18 | + * Example of usage magic labels for future form helper usage |
|
| 19 | + */ |
|
| 20 | 20 | public function labels() |
| 21 | 21 | { |
| 22 | 22 | return [ |
@@ -25,8 +25,8 @@ discard block |
||
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * Typo rules |
|
| 29 | - */ |
|
| 28 | + * Typo rules |
|
| 29 | + */ |
|
| 30 | 30 | public function rules() |
| 31 | 31 | { |
| 32 | 32 | return []; |
@@ -24,8 +24,8 @@ discard block |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | - * Set readable title of content to property |
|
| 28 | - */ |
|
| 27 | + * Set readable title of content to property |
|
| 28 | + */ |
|
| 29 | 29 | public function before() |
| 30 | 30 | { |
| 31 | 31 | $this->id = $this->_record->id; |
@@ -33,8 +33,8 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * Form labels |
|
| 37 | - */ |
|
| 36 | + * Form labels |
|
| 37 | + */ |
|
| 38 | 38 | public function labels() |
| 39 | 39 | { |
| 40 | 40 | return [ |
@@ -43,8 +43,8 @@ discard block |
||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | - * Validation does not matter |
|
| 47 | - */ |
|
| 46 | + * Validation does not matter |
|
| 47 | + */ |
|
| 48 | 48 | public function rules() |
| 49 | 49 | { |
| 50 | 50 | return [ |
@@ -20,8 +20,8 @@ discard block |
||
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * Pass properties |
|
| 24 | - */ |
|
| 23 | + * Pass properties |
|
| 24 | + */ |
|
| 25 | 25 | public function before() |
| 26 | 26 | { |
| 27 | 27 | $this->id = $this->_record->id; |
@@ -29,8 +29,8 @@ discard block |
||
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * Form label |
|
| 33 | - */ |
|
| 32 | + * Form label |
|
| 33 | + */ |
|
| 34 | 34 | public function labels() |
| 35 | 35 | { |
| 36 | 36 | return [ |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * Typical rules |
|
| 43 | - */ |
|
| 42 | + * Typical rules |
|
| 43 | + */ |
|
| 44 | 44 | public function rules() |
| 45 | 45 | { |
| 46 | 46 | return []; |
@@ -43,8 +43,8 @@ discard block |
||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | - * Set model properties from active record data |
|
| 47 | - */ |
|
| 46 | + * Set model properties from active record data |
|
| 47 | + */ |
|
| 48 | 48 | public function before() |
| 49 | 49 | { |
| 50 | 50 | // is new item? |
@@ -105,8 +105,8 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | - * Labels |
|
| 109 | - */ |
|
| 108 | + * Labels |
|
| 109 | + */ |
|
| 110 | 110 | public function labels() |
| 111 | 111 | { |
| 112 | 112 | return [ |
@@ -28,8 +28,8 @@ discard block |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * Set model properties based on defaults config values |
|
| 32 | - */ |
|
| 31 | + * Set model properties based on defaults config values |
|
| 32 | + */ |
|
| 33 | 33 | public function before() |
| 34 | 34 | { |
| 35 | 35 | foreach ($this->_configs as $property => $value) { |
@@ -40,8 +40,8 @@ discard block |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | - * Form labels |
|
| 44 | - */ |
|
| 43 | + * Form labels |
|
| 44 | + */ |
|
| 45 | 45 | public function labels() |
| 46 | 46 | { |
| 47 | 47 | return [ |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | - * Validation rules |
|
| 61 | - */ |
|
| 60 | + * Validation rules |
|
| 61 | + */ |
|
| 62 | 62 | public function rules() |
| 63 | 63 | { |
| 64 | 64 | return [ |
@@ -32,8 +32,8 @@ |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * Check passed params from constructor |
|
| 36 | - */ |
|
| 35 | + * Check passed params from constructor |
|
| 36 | + */ |
|
| 37 | 37 | public function before() |
| 38 | 38 | { |
| 39 | 39 | // check rule type |