| 1 | <?php |
||
| 21 | class Activity extends \Model { |
||
| 22 | |||
| 23 | static $logging = false; |
||
|
|
|||
| 24 | static $cols = [ |
||
| 25 | 'type' => ['type' => 'select', 'source' => 'array', |
||
| 26 | 'sourceArray' => [ |
||
| 27 | 'changes' => 'Изменение', |
||
| 28 | 'new' => 'Создание', |
||
| 29 | 'delete' => 'Удаление' |
||
| 30 | ] |
||
| 31 | ], |
||
| 32 | 'item_id' => ['type' => 'number'], |
||
| 33 | 'module' => ['type' => 'text'], |
||
| 34 | 'model' => ['type' => 'text'], |
||
| 35 | 'user_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'user'], |
||
| 36 | 'changes_text' => ['type' => 'text'], |
||
| 37 | 'date_create' => ['type' => 'dateTime'] |
||
| 38 | ]; |
||
| 39 | |||
| 40 | static function relations() { |
||
| 53 | |||
| 54 | } |
||
| 55 |
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.