本文整理汇总了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);
}