Auth类的getGroups方法有点不懂

浏览:945 发布日期:2015/04/19 分类:求助交流 关键字: getGroups Auth
public function getGroups($uid) {
        static $groups = array();
        if (isset($groups[$uid]))
            return $groups[$uid];
        $user_groups = M()
            ->table($this->_config['AUTH_GROUP_ACCESS'] . ' a')
            ->where("a.uid='$uid' and g.status='1'")
            ->join($this->_config['AUTH_GROUP']." g on a.group_id=g.id")
            ->field('uid,group_id,title,rules')->select();
        $groups[$uid]=$user_groups?:array();
        return $groups[$uid];
    }
里面的 "a"是什么意思呢?没有看懂,table($this->_config['AUTH_GROUP_ACCESS'] . ' a')
最佳答案
评论( 相关
后面还有条评论,点击查看>>