| 1 | <?php |
||
| 13 | class ConfigItem extends \Model { |
||
| 14 | |||
| 15 | static $cols = [ |
||
|
|
|||
| 16 | 'name' => ['type' => 'text'], |
||
| 17 | 'value' => ['type' => 'textarea'], |
||
| 18 | 'delivery_provider_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'deliveryProvider'], |
||
| 19 | ]; |
||
| 20 | static $forms = [ |
||
| 21 | 'manager' => [ |
||
| 22 | 'map' => [ |
||
| 23 | ['name', 'value'] |
||
| 24 | ] |
||
| 25 | ] |
||
| 26 | ]; |
||
| 27 | static $dataManagers = [ |
||
| 28 | 'manager' => [ |
||
| 29 | 'cols' => ['name', 'value'] |
||
| 30 | ] |
||
| 31 | ]; |
||
| 32 | |||
| 33 | static function relations() { |
||
| 41 | } |
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.