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