1 | <?php |
||
14 | class Provider extends \Model { |
||
15 | static $objectName = 'Провайдер доставки'; |
||
|
|||
16 | static $cols = [ |
||
17 | 'name' => ['type' => 'text'], |
||
18 | 'object' => ['type' => 'text'], |
||
19 | 'active' => ['type' => 'bool'], |
||
20 | 'config' => ['type' => 'dataManager', 'relation' => 'configs'], |
||
21 | ]; |
||
22 | static $forms = [ |
||
23 | 'manager' => [ |
||
24 | 'map' => [ |
||
25 | ['name', 'object', 'active'], |
||
26 | ['config'] |
||
27 | ] |
||
28 | ] |
||
29 | ]; |
||
30 | static $dataManagers = [ |
||
31 | 'manager' => [ |
||
32 | 'cols' => ['name', 'active', 'object', 'config'] |
||
33 | ] |
||
34 | ]; |
||
35 | |||
36 | static function relations() { |
||
45 | } |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.