AdminAction::postRecycle PHP Метод

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

帖子回收站
public postRecycle ( )
    public function postRecycle()
    {
        $_REQUEST['tabHash'] = 'postRecycle';
        $this->_initWeibaListAdminMenu();
        // 设置列表主键
        $this->_listpk = 'post_id';
        $this->pageButton[] = array('title' => '搜索帖子', 'onclick' => "admin.fold('search_form')");
        $this->pageButton[] = array('title' => '还原', 'onclick' => 'admin.recoverPost()');
        $this->pageButton[] = array('title' => '彻底删除', 'onclick' => 'admin.deletePost()');
        $this->searchKey = array('post_id', 'title', 'post_uid', 'weiba_id');
        $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' => 1));
        $this->displayList($listData);
    }