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


PHP Gender::getItems方法代碼示例

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


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

示例1: load_form

 public function load_form($form_id = NULL)
 {
     if ($form_id == "patient_details") {
         $data['pob'] = District::getItems();
         $data['gender'] = Gender::getItems();
         $data['current_status'] = Patient_Status::getItems();
         $data['source'] = Patient_Source::getItems();
         $data['drug_prophylaxis'] = Drug_Prophylaxis::getItems();
         $data['service'] = Regimen_Service_Type::getItems();
         $data['fplan'] = Family_Planning::getItems();
         $data['other_illnesses'] = Other_Illnesses::getItems();
         $data['pep_reason'] = Pep_Reason::getItems();
         $data['drug_allergies'] = Drugcode::getItems();
         $regimens = Regimen::getItems();
         $data['start_regimen'] = $regimens;
         $data['current_regimen'] = $regimens;
         $data['who_stage'] = Who_Stage::getItems();
         //Get facilities beacuse of UTF-8 encoding
         $this->db->select('facilitycode AS id, name AS Name');
         $query = $this->db->get('facilities');
         $facilities = $query->result_array();
         foreach ($facilities as $facility) {
             $facility_list[] = array('id' => $facility['id'], 'Name' => utf8_encode($facility['Name']));
         }
         $data['transfer_from'] = $facility_list;
     }
     echo json_encode($data);
 }
開發者ID:OmondiKevin,項目名稱:ADT,代碼行數:28,代碼來源:patient_management.php


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