GameclassifyModel.php 589 B

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