本文整理匯總了PHP中Facilities::get_facility_details方法的典型用法代碼示例。如果您正苦於以下問題:PHP Facilities::get_facility_details方法的具體用法?PHP Facilities::get_facility_details怎麽用?PHP Facilities::get_facility_details使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Facilities
的用法示例。
在下文中一共展示了Facilities::get_facility_details方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: facility_offline
public function facility_offline()
{
$identifier = $this->session->userdata('user_indicator');
$user_type_id = $this->session->userdata('user_type_id');
$district = $this->session->userdata('district_id');
// echo $identifier;exit;
$county = $this->session->userdata('county_id');
// $data['facilities'] = isset($district) ? Facilities::get_facility_details($district) : Facilities::get_facilities_per_county($county);
if ($identifier == "district") {
$data['facilities'] = Facilities::get_facility_details($district);
$data['identifier'] = $identifier;
} elseif ($identifier == "county") {
$data['facilities'] = Facilities::get_facility_details(NULL, $county);
$data['identifier'] = $identifier;
$data['district_info'] = Districts::get_districts($county);
}
$permissions = 'district_permissions';
// $data['facilities']=Facilities::get_facility_details($district);
// $data['facilities']=Facilities::get_facilities_per_county($county);
// echo "<pre>";print_r($data['facilities']);echo "</pre>";exit;
$data['title'] = "Offline Facility Setup";
$data['banner_text'] = "Setup Facility Offline";
$template = 'shared_files/template/template';
// $data['sidebar'] = "shared_files/report_templates/side_bar_sub_county_v";
$data['active_panel'] = 'system_usage';
// $data['report_view'] = "shared_files/Facility_activation_v";
$data['content_view'] = "shared_files/facility_offline";
$this->load->view($template, $data);
}
示例2: fcdrr_test
public function fcdrr_test($facility_c)
{
$data = array();
$data['title'] = "FCDRR";
$data['banner_text'] = "FCDRR";
$data['content_view'] = "rtk/dpp/fcdrr_test";
$district = $this->session->userdata('district_id');
$data['facilities'] = Facilities::get_facility_details($district);
$data['commodities'] = Rtk_Categories::get_all();
$data['details'] = Facilities::get_one_facility_details($facility_c);
$this->facility_code = $facility_c;
$data['facility_code'] = $this->facility_code;
$this->load->view("rtk/template", $data);
}