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


PHP Facilities::getPagedFacilities方法代碼示例

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


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

示例1: whole_list

 public function whole_list($offset = 0)
 {
     $items_per_page = 20;
     $number_of_facilities = Facilities::getTotalNumber();
     $facilities = Facilities::getPagedFacilities($offset, $items_per_page);
     if ($number_of_facilities > $items_per_page) {
         $config['base_url'] = base_url() . "facility_management/whole_list/";
         $config['total_rows'] = $number_of_facilities;
         $config['per_page'] = $items_per_page;
         $config['uri_segment'] = 3;
         $config['num_links'] = 5;
         $this->pagination->initialize($config);
         $data['pagination'] = $this->pagination->create_links();
     }
     $data['facilities'] = $facilities;
     $data['title'] = "Facility Management::All Facilities";
     $data['module_view'] = "view_facilities_view";
     $this->new_base_params($data);
 }
開發者ID:EuniceManyasi,項目名稱:DVI,代碼行數:19,代碼來源:facility_management.php

示例2: district_list

 public function district_list($offset = 0)
 {
     $district = $this->session->userdata("district_province_id");
     $items_per_page = 20;
     $number_of_facilities = Facilities::getTotalNumber($district);
     $facilities = Facilities::getPagedFacilities($offset, $items_per_page, $district);
     if ($number_of_facilities > $items_per_page) {
         $config['base_url'] = base_url() . "facility_management/district_list/";
         $config['total_rows'] = $number_of_facilities;
         $config['per_page'] = $items_per_page;
         $config['uri_segment'] = 3;
         $config['num_links'] = 5;
         $this->pagination->initialize($config);
         $data['pagination'] = $this->pagination->create_links();
     }
     $data['facilities'] = $facilities;
     $data['title'] = "Facility Management::All Facilities";
     $data['content_view'] = "view_district_facilities";
     $data['link'] = "facility_management/district_list";
     $this->base_params($data);
 }
開發者ID:bamcod,項目名稱:Disease-Surveillance,代碼行數:21,代碼來源:facility_management.php


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