本文整理汇总了PHP中Facilities::get_more_stats方法的典型用法代码示例。如果您正苦于以下问题:PHP Facilities::get_more_stats方法的具体用法?PHP Facilities::get_more_stats怎么用?PHP Facilities::get_more_stats使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Facilities
的用法示例。
在下文中一共展示了Facilities::get_more_stats方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_facility_details
public function get_facility_details($facility_code)
{
$facility_data = Facilities::get_more_stats($facility_code);
$final_data = array();
foreach ($facility_data as $key => $value) {
$date_created = $value['date_of_activation'];
$last_order = $value['last_order'];
$last_activity = $value['last_activity'];
$last_order_date = date('d F y', strtotime($last_order));
$final_data = array('date_created' => $date_created, "last_order" => $last_order, "last_activity" => $last_activity);
}
// echo "<pre>"; print_r($final_data); echo "</pre>"; exit;
echo json_encode($final_data);
}