Beispiel #1
0
 /**
  * 获取当前Session的组ID
  *
  */
 public function getGroupId()
 {
     $rev = $this->_groupId;
     if (!$rev) {
         $rev = r('zu_id');
         //如果当前会话没有组ID,使用 URL 指定的组ID
         if (!$rev) {
             $rev = Pft_Config::getDefaultZuId();
             //如果 URL 也没有组ID,使用默认组ID
         }
         $this->_groupId = $rev;
         //将当前会话用户归入之前选定的组
     }
     return $rev;
 }