/** * フリマ一覧 * * @access public * @param * @return void * @author kobayashi * @author ida */ public function action_list() { $conditions = $this->getCondition(); $condition_list = \Model_Fleamarket::createAdminSearchCondition($conditions); $total_count = \Model_Fleamarket::getCountByAdminSearch($condition_list); // ページネーション設定 $pagination = \Pagination::forge('fleamarket_pagination', $this->getPaginationConfig($total_count)); $fleamarkets = \Model_Fleamarket::findAdminBySearch($condition_list, $pagination->current_page, $this->result_per_page); $view_model = \ViewModel::forge('admin/fleamarket/list'); $view_model->set('fleamarkets', $fleamarkets, false); $view_model->set('pagination', $pagination, false); $view_model->set('conditions', $conditions, false); $this->template->content = $view_model; }