| 1234567891011121314151617 |
- <?php
- namespace app\common\model;
- class SelectNameModel extends BaseModel
- {
- // 设置表名
- protected $name = 'select_name';
- //常量
- const STATUS = [1 => '显示', 2 => '隐藏'];
- public function getStatusTextAttr($value, $data)
- {
- return self::STATUS[$data['status']];
- }
- }
|