Groups.php 497 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace app\index\model;
  3. use think\Model;
  4. /**
  5. * 分组模型
  6. */
  7. class Groups extends Model
  8. {
  9. /**
  10. * select数据筛选
  11. *
  12. * @access public
  13. * @param mixed $where 条件
  14. * @return array 返回类型
  15. */
  16. public function select($where=[])
  17. {
  18. $result = $this;
  19. if (empty($where) === false) {
  20. $result = $result->where($where);
  21. }
  22. $result = $result->select();
  23. return $result;
  24. }//end select()
  25. }