AdminAction::postList PHP Метод

postList() публичный Метод

后台帖子列表
public postList ( )
    public function postList()
    {
        $_REQUEST['tabHash'] = 'postList';
        $this->_initWeibaListAdminMenu();
        // 设置列表主键
        $this->_listpk = 'post_id';
        $this->pageButton[] = array('title' => '搜索帖子', 'onclick' => "admin.fold('search_form')");
        // $this->pageButton[] = array('title'=>'调整回复楼层','onclick'=>"admin.doStorey()");
        $this->pageButton[] = array('title' => '删除帖子', 'onclick' => 'admin.delPost()');
        $this->searchKey = array('post_id', 'title', 'post_uid', 'recommend', 'digest', 'top', 'weiba_id');
        $this->opt['recommend'] = array('0' => L('PUBLIC_SYSTEMD_NOACCEPT'), '1' => '是', '2' => '否');
        $this->opt['digest'] = array('0' => L('PUBLIC_SYSTEMD_NOACCEPT'), '1' => '是', '2' => '否');
        $this->opt['top'] = array('0' => L('PUBLIC_SYSTEMD_NOACCEPT'), '1' => '吧内置顶', '2' => '全局置顶');
        $weibaList = D('weiba')->getHashList($k = 'weiba_id', $v = 'weiba_name');
        $weibaList[0] = L('PUBLIC_SYSTEMD_NOACCEPT');
        $this->opt['weiba_id'] = $weibaList;
        $this->pageKeyList = array('post_id', 'title', 'post_uid', 'post_time', 'last_reply_time', 'read_count/reply_count', 'weiba_id', 'DOACTION');
        // 数据的格式化与listKey保持一致
        $listData = D('Weiba', 'weiba')->getPostList(20, array('is_del' => 0));
        $this->displayList($listData);
    }