@@ -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 []; |
@@ -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 |
@@ -18,9 +18,9 @@ |
||
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * EntityDeleteRoute constructor. Pass parameters from controller |
| 21 | - * @param null $type |
|
| 22 | - * @param null $loader |
|
| 23 | - * @param null $source |
|
| 21 | + * @param string $type |
|
| 22 | + * @param string $loader |
|
| 23 | + * @param string $source |
|
| 24 | 24 | */ |
| 25 | 25 | public function __construct($type = null, $loader = null, $source = null) |
| 26 | 26 | { |
@@ -17,16 +17,16 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * Load default properties into the model |
|
| 21 | - */ |
|
| 20 | + * Load default properties into the model |
|
| 21 | + */ |
|
| 22 | 22 | public function before() |
| 23 | 23 | { |
| 24 | 24 | $this->cfg = App::$Properties->getAll('Routing'); |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * Define labels for form |
|
| 29 | - */ |
|
| 28 | + * Define labels for form |
|
| 29 | + */ |
|
| 30 | 30 | public function labels() |
| 31 | 31 | { |
| 32 | 32 | return [ |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * Define validation rules |
|
| 42 | - */ |
|
| 41 | + * Define validation rules |
|
| 42 | + */ |
|
| 43 | 43 | public function rules() |
| 44 | 44 | { |
| 45 | 45 | return [ |
@@ -27,8 +27,8 @@ discard block |
||
| 27 | 27 | public $languageDomainAlias; |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * Set property values from configurations |
|
| 31 | - */ |
|
| 30 | + * Set property values from configurations |
|
| 31 | + */ |
|
| 32 | 32 | public function before() |
| 33 | 33 | { |
| 34 | 34 | // set default values |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * Set translation helpers |
|
| 42 | - */ |
|
| 41 | + * Set translation helpers |
|
| 42 | + */ |
|
| 43 | 43 | public function labels() |
| 44 | 44 | { |
| 45 | 45 | return [ |
@@ -64,8 +64,8 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * Validation rules for configuration saving |
|
| 68 | - */ |
|
| 67 | + * Validation rules for configuration saving |
|
| 68 | + */ |
|
| 69 | 69 | public function rules() |
| 70 | 70 | { |
| 71 | 71 | return [ |
@@ -23,8 +23,8 @@ discard block |
||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | - * Set defaults values |
|
| 27 | - */ |
|
| 26 | + * Set defaults values |
|
| 27 | + */ |
|
| 28 | 28 | public function before() |
| 29 | 29 | { |
| 30 | 30 | foreach ($this->_record->toArray() as $property => $value) { |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * Labels |
|
| 43 | - */ |
|
| 42 | + * Labels |
|
| 43 | + */ |
|
| 44 | 44 | public function labels() |
| 45 | 45 | { |
| 46 | 46 | return [ |
@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * Validation rules |
|
| 56 | - */ |
|
| 55 | + * Validation rules |
|
| 56 | + */ |
|
| 57 | 57 | public function rules() |
| 58 | 58 | { |
| 59 | 59 | $rules = [ |
@@ -87,6 +87,6 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | public function delete() |
| 89 | 89 | { |
| 90 | - $this->_record->delete(); |
|
| 90 | + $this->_record->delete(); |
|
| 91 | 91 | } |
| 92 | 92 | } |
| 93 | 93 | \ No newline at end of file |
@@ -21,8 +21,8 @@ |
||
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * Set user data to model property |
|
| 25 | - */ |
|
| 24 | + * Set user data to model property |
|
| 25 | + */ |
|
| 26 | 26 | public function before() |
| 27 | 27 | { |
| 28 | 28 | $this->email = $this->_user->getParam('email'); |