Пример #1
0
 /**
  * 权限点列表
  * 
  * @return boolean
  */
 public function listAction()
 {
     $sKey = $this->getParam('qkey');
     $iPage = intval($this->getParam('page'));
     $aWhere = array('iStatus' => 1);
     if (!empty($sKey)) {
         $aWhere['sPath LIKE'] = '%' . $sKey . '%';
     }
     $aList = Model_Permission::getList($aWhere, $iPage);
     $aMenuID = array();
     foreach ($aList['aList'] as $v) {
         $aMenuID[] = $v['iMenuID'];
     }
     $aMenuList = Model_Menu::getPKIDList($aMenuID, true);
     $this->assign('aList', $aList);
     $this->assign('aMenuList', $aMenuList);
 }