@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Apps\Model\Front\Profile; |
| 4 | 4 | |
| 5 | 5 | use Apps\ActiveRecord\Blacklist; |
| 6 | -use Ffcms\Core\App; |
|
| 7 | 6 | use Ffcms\Core\Arch\Model; |
| 8 | 7 | use Ffcms\Core\Interfaces\iUser; |
| 9 | 8 | |
@@ -1,9 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use Ffcms\Core\Helper\Date; |
|
| 4 | 3 | use Ffcms\Core\Helper\HTML\Form; |
| 5 | 4 | use Ffcms\Core\Helper\Simplify; |
| 6 | -use Ffcms\Core\Helper\Type\Str; |
|
| 7 | 5 | use Ffcms\Core\Helper\Url; |
| 8 | 6 | |
| 9 | 7 | /** @var $model Apps\Model\Front\Profile\FormIgnoreDelete */ |
@@ -1,6 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** @var array $configs */ |
| 3 | -use Ffcms\Core\Helper\Security; |
|
| 4 | 3 | |
| 5 | 4 | ?> |
| 6 | 5 | |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php return [ |
| 2 | - 'Alias' => [ |
|
| 3 | - 'Front' => [ |
|
| 4 | - '/' => '/content/list/news' |
|
| 5 | - ] |
|
| 6 | - ] |
|
| 2 | + 'Alias' => [ |
|
| 3 | + 'Front' => [ |
|
| 4 | + '/' => '/content/list/news' |
|
| 5 | + ] |
|
| 6 | + ] |
|
| 7 | 7 | ]; |
| 8 | 8 | \ No newline at end of file |
@@ -22,8 +22,8 @@ discard block |
||
| 22 | 22 | public $captcha; |
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | - * Labels for visual display |
|
| 26 | - */ |
|
| 25 | + * Labels for visual display |
|
| 26 | + */ |
|
| 27 | 27 | public function labels() |
| 28 | 28 | { |
| 29 | 29 | return [ |
@@ -33,8 +33,8 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * Validation rules |
|
| 37 | - */ |
|
| 36 | + * Validation rules |
|
| 37 | + */ |
|
| 38 | 38 | public function rules() |
| 39 | 39 | { |
| 40 | 40 | return [ |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * Set default data |
|
| 42 | - */ |
|
| 41 | + * Set default data |
|
| 42 | + */ |
|
| 43 | 43 | public function before() |
| 44 | 44 | { |
| 45 | 45 | $profile = $this->_user->getProfile()->toArray(); // object to array (property's is protected of access) |
@@ -60,8 +60,8 @@ discard block |
||
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | - * Form display labels |
|
| 64 | - */ |
|
| 63 | + * Form display labels |
|
| 64 | + */ |
|
| 65 | 65 | public function labels() |
| 66 | 66 | { |
| 67 | 67 | $labels = [ |
@@ -83,8 +83,8 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | - * Rules for validation |
|
| 87 | - */ |
|
| 86 | + * Rules for validation |
|
| 87 | + */ |
|
| 88 | 88 | public function rules() |
| 89 | 89 | { |
| 90 | 90 | $rules = [ |
@@ -21,8 +21,8 @@ |
||
| 21 | 21 | |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * Load default properties into the model |
|
| 25 | - */ |
|
| 24 | + * Load default properties into the model |
|
| 25 | + */ |
|
| 26 | 26 | public function before() |
| 27 | 27 | { |
| 28 | 28 | $this->cfg = App::$Properties->getAll('Routing'); |
@@ -36,8 +36,8 @@ discard block |
||
| 36 | 36 | public $trustedProxy; |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * Set property values from configurations |
|
| 40 | - */ |
|
| 39 | + * Set property values from configurations |
|
| 40 | + */ |
|
| 41 | 41 | public function before() |
| 42 | 42 | { |
| 43 | 43 | // set default values |
@@ -49,8 +49,8 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | - * Set translation helpers |
|
| 53 | - */ |
|
| 52 | + * Set translation helpers |
|
| 53 | + */ |
|
| 54 | 54 | public function labels() |
| 55 | 55 | { |
| 56 | 56 | return [ |
@@ -39,8 +39,8 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * Load user data on before method |
|
| 43 | - */ |
|
| 42 | + * Load user data on before method |
|
| 43 | + */ |
|
| 44 | 44 | public function before() |
| 45 | 45 | { |
| 46 | 46 | foreach ($this->getAllProperties() as $property => $old_data) { |