Group.php 493 B

12345678910111213141516171819202122
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. include_once(FCPATH . 'application/controllers/Base_Controller.php');
  3. class Map extends Base_Controller{
  4. public function __construct()
  5. {
  6. parent::__construct();
  7. $this->load->model('Group_model');
  8. }
  9. // 分组列表
  10. public function get_list(){
  11. $userId = $this->get_user_info('id');
  12. $role = $this->get_user_info('role');
  13. $where = array();
  14. if ($role != SYSTEM_ADMIN) $where['userId'] = $userId;
  15. }
  16. }