1234567891011121314151617181920212223242526 |
- <?php
- /**
- * GameclassifyModel.php UTF-8
- * 游戏类别
- *
- * @date : 2018/1/23 17:28
- *
- * @license 这不是一个自由软件,未经授权不许任何使用和传播。
- * @author : linjiebin <ljb@huosdk.com>
- * @version : HUOSDK 8.0
- */
- namespace huo\model\game;
- use huo\model\common\CommonModel;
- class GameclassifyModel extends CommonModel {
- const STATUS_DISABLE = 1;
- const STATUS_ENABLE = 2;
- protected $name = 'game_classify';
- public function getIdNames() {
- return $this->where('status', '=', self::STATUS_ENABLE)->column(['id', 'name']);
- }
- }
|