當前位置: 首頁>>代碼示例>>PHP>>正文


PHP AdminListBuilder::clearTrash方法代碼示例

本文整理匯總了PHP中Admin\Builder\AdminListBuilder::clearTrash方法的典型用法代碼示例。如果您正苦於以下問題:PHP AdminListBuilder::clearTrash方法的具體用法?PHP AdminListBuilder::clearTrash怎麽用?PHP AdminListBuilder::clearTrash使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Admin\Builder\AdminListBuilder的用法示例。


在下文中一共展示了AdminListBuilder::clearTrash方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: commentTrash

 public function commentTrash($page = 1, $r = 20, $model = '')
 {
     $builder = new AdminListBuilder();
     $builder->clearTrash($model);
     //讀取評論列表
     $map = array('status' => -1);
     $model = M('WeiboComment');
     $list = $model->where($map)->order('create_time asc')->page($page, $r)->select();
     $totalCount = $model->where($map)->count();
     //顯示頁麵
     $builder->title('回複回收站')->setStatusUrl(U('setCommentStatus'))->buttonRestore()->buttonClear('WeiboComment')->keyId()->keyText('content', '內容')->keyUid()->keyCreateTime()->data($list)->pagination($totalCount, $r)->display();
 }
開發者ID:suhanyujie,項目名稱:digitalOceanVps,代碼行數:12,代碼來源:WeiboController.class.php

示例2: contentTrash

 public function contentTrash($page = 1, $r = 10, $model = '')
 {
     //讀取微博列表
     $builder = new AdminListBuilder();
     //內含  delete 方法
     $builder->clearTrash($model);
     $map = array('status' => -1);
     $model = D('IssueContent');
     $list = $model->where($map)->page($page, $r)->select();
     $totalCount = $model->where($map)->count();
     //顯示頁麵
     $builder->title('內容回收站')->setStatusUrl(U('setIssueContentStatus'))->buttonRestore()->buttonClear('IssueContent')->keyId()->keyLink('title', '標題', 'Issue/Index/issueContentDetail?id=###')->keyUid()->keyCreateTime()->keyStatus()->data($list)->pagination($totalCount, $r)->display();
 }
開發者ID:smartymoon,項目名稱:e-anjia,代碼行數:13,代碼來源:IssueController.class.php

示例3: commentTrash

 public function commentTrash()
 {
     $aPage = I('page', 1, 'intval');
     $r = 20;
     $builder = new AdminListBuilder();
     $builder->clearTrash('WeiboComment');
     //讀取評論列表
     $map = array('status' => -1);
     $model = M('WeiboComment');
     $list = $model->where($map)->order('id desc')->page($aPage, $r)->select();
     $totalCount = $model->where($map)->count();
     //顯示頁麵
     $builder->title(L('_REPLY_TRASH_'))->setStatusUrl(U('setCommentStatus'))->buttonRestore()->buttonClear('WeiboComment')->keyId()->keyText('content', L('_CONTENT_'))->keyUid()->keyCreateTime()->data($list)->pagination($totalCount, $r)->display();
 }
開發者ID:sunjie20081001,項目名稱:sns,代碼行數:14,代碼來源:WeiboController.class.php

示例4: replyTrash

 public function replyTrash($page = 1, $r = 20, $model = '')
 {
     $builder = new AdminListBuilder();
     $builder->clearTrash($model);
     //讀取回複列表
     $map = array('status' => -1);
     $model = M('ForumPostReply');
     $list = $model->where($map)->order('create_time asc')->page($page, $r)->select();
     foreach ($list as &$reply) {
         $reply['content'] = op_t($reply['content']);
     }
     unset($reply);
     $totalCount = $model->where($map)->count();
     //顯示頁麵
     $builder->title('回複回收站')->setStatusUrl(U('setReplyStatus'))->buttonRestore()->buttonClear('ForumPostReply')->keyId()->keyTruncText('content', '內容', 50)->keyCreateTime()->keyUpdateTime()->keyStatus()->data($list)->pagination($totalCount, $r)->display();
 }
開發者ID:tmac1997,項目名稱:DormitoryWebsite,代碼行數:16,代碼來源:ForumController.class.php

示例5: entityTrash

 public function entityTrash($page = 1, $r = 20)
 {
     $aModel = I('model', 'CatEntity', 'text');
     $listBuilder = new AdminListBuilder();
     $listBuilder->clearTrash($aModel);
     $data = M('cat_entity')->where('status=-1')->page($page, $r)->order('sort desc')->select();
     $totalCount = M('cat_entity')->where('status=-1')->count();
     foreach ($data as &$v) {
         $v['fields'] = '字段管理';
     }
     unset($v);
     $listBuilder->title('模型回收站')->keyId()->keyLink('name', '模型英文名', 'info?entity_id=###')->keyLink('alias', '模型中文名', 'info?entity_id=###')->keyLink('fields', '字段管理', 'field?entity_id=###')->keyStatus()->keyText('sort', '排序')->keyDoActionEdit('editEntity?entity_id=###')->data($data)->pagination($totalCount, $r);
     $listBuilder->buttonRestore(U('dodelentity'))->buttonClear('CatEntity');
     $listBuilder->display();
 }
開發者ID:terrydeng,項目名稱:beimeibang1205,代碼行數:15,代碼來源:CatController.class.php

示例6: eventTypeTrash

 public function eventTypeTrash($page = 1, $r = 20)
 {
     $builder = new AdminListBuilder();
     $builder->clearTrash('EventType');
     //讀取微博列表
     $map = array('status' => -1);
     $model = $this->eventTypeModel;
     $list = $model->where($map)->page($page, $r)->select();
     $totalCount = $model->where($map)->count();
     //顯示頁麵
     $builder->title('活動類型回收站')->setStatusUrl(U('setStatus'))->buttonRestore()->buttonClear()->keyId()->keyText('title', '標題')->keyStatus()->keyCreateTime()->data($list)->pagination($totalCount, $r)->display();
 }
開發者ID:tmac1997,項目名稱:DormitoryWebsite,代碼行數:12,代碼來源:EventController.class.php

示例7: goodsTrash

 public function goodsTrash($page = 1, $r = 10, $model = '')
 {
     $builder = new AdminListBuilder();
     $builder->clearTrash($model);
     //讀取微博列表
     $map = array('status' => -1);
     $goodsList = $this->shopModel->where($map)->order('changetime desc')->page($page, $r)->select();
     $totalCount = $this->shopModel->where($map)->count();
     //顯示頁麵
     $builder->title('商品回收站')->setStatusUrl(U('setGoodsStatus'))->buttonRestore()->buttonClear('Shop/Shop')->keyId()->keyLink('goods_name', '標題', 'Shop/goodsEdit?id=###')->keyCreateTime()->keyStatus()->data($goodsList)->pagination($totalCount, $r)->display();
 }
開發者ID:chenyongze,項目名稱:bighaha,代碼行數:11,代碼來源:ShopController.class.php


注:本文中的Admin\Builder\AdminListBuilder::clearTrash方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。