当前位置: 首页>>代码示例>>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;未经允许,请勿转载。