当前位置: 首页>>代码示例>>PHP>>正文


PHP Default_Model_Countries::getGrid方法代码示例

本文整理汇总了PHP中Default_Model_Countries::getGrid方法的典型用法代码示例。如果您正苦于以下问题:PHP Default_Model_Countries::getGrid方法的具体用法?PHP Default_Model_Countries::getGrid怎么用?PHP Default_Model_Countries::getGrid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Default_Model_Countries的用法示例。


在下文中一共展示了Default_Model_Countries::getGrid方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: indexAction

 public function indexAction()
 {
     $countriesmodel = new Default_Model_Countries();
     $call = $this->_getParam('call');
     if ($call == 'ajaxcall') {
         $this->_helper->layout->disableLayout();
     }
     $view = Zend_Layout::getMvcInstance()->getView();
     $objname = $this->_getParam('objname');
     $refresh = $this->_getParam('refresh');
     $dashboardcall = $this->_getParam('dashboardcall');
     $data = array();
     $searchQuery = '';
     $searchArray = array();
     $tablecontent = '';
     if ($refresh == 'refresh') {
         if ($dashboardcall == 'Yes') {
             $perPage = DASHBOARD_PERPAGE;
         } else {
             $perPage = PERPAGE;
         }
         $sort = 'DESC';
         $by = 'modifieddate';
         $pageNo = 1;
         $searchData = '';
         $searchQuery = '';
         $searchArray = '';
     } else {
         $sort = $this->_getParam('sort') != '' ? $this->_getParam('sort') : 'DESC';
         $by = $this->_getParam('by') != '' ? $this->_getParam('by') : 'modifieddate';
         if ($dashboardcall == 'Yes') {
             $perPage = $this->_getParam('per_page', DASHBOARD_PERPAGE);
         } else {
             $perPage = $this->_getParam('per_page', PERPAGE);
         }
         $pageNo = $this->_getParam('page', 1);
         /** search from grid - START **/
         $searchData = $this->_getParam('searchData');
         $searchData = rtrim($searchData, ',');
         /** search from grid - END **/
     }
     $dataTmp = $countriesmodel->getGrid($sort, $by, $perPage, $pageNo, $searchData, $call, $dashboardcall);
     array_push($data, $dataTmp);
     $this->view->dataArray = $data;
     $this->view->call = $call;
     $this->view->messages = $this->_helper->flashMessenger->getMessages();
 }
开发者ID:rajbrt,项目名称:sentrifugo,代码行数:47,代码来源:CountriesController.php


注:本文中的Default_Model_Countries::getGrid方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。