本文整理汇总了PHP中Facilities::getFacilities_json方法的典型用法代码示例。如果您正苦于以下问题:PHP Facilities::getFacilities_json方法的具体用法?PHP Facilities::getFacilities_json怎么用?PHP Facilities::getFacilities_json使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Facilities
的用法示例。
在下文中一共展示了Facilities::getFacilities_json方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_facility_json
public function get_facility_json($district)
{
echo json_encode(Facilities::getFacilities_json($district));
}
示例2: createfacilitiessubcounty
public function createfacilitiessubcounty($sub_county, $type = NULL)
{
$facilities = Facilities::getFacilities_json($sub_county);
$facility_listing = '';
foreach ($facilities as $key => $value) {
$facility_listing .= '<option value = "' . $value['facility_code'] . '">' . $value['facility_name'] . '</option>';
}
switch ($type) {
case 'ajax':
echo $facility_listing;
break;
default:
return $facility_listing;
break;
}
}