本文整理匯總了PHP中Monolog\Logger::DEBUG方法的典型用法代碼示例。如果您正苦於以下問題:PHP Logger::DEBUG方法的具體用法?PHP Logger::DEBUG怎麽用?PHP Logger::DEBUG使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Monolog\Logger
的用法示例。
在下文中一共展示了Logger::DEBUG方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getParkingData
public function getParkingData()
{
echo 'こんにちは';
Logger::DEBUG("getParkingData()");
//半徑1kmあたりの座標
//$latScale = 0.009027;
//$lngScale = 0.011111;
$distance = (double) $_GET['radius'] * 0.000157;
//mongodbからデータ取得
//$selectParData = DB::collection("parking_space")->get();
$selectParData = DB::getMongoDB()->Command(array('geoNear' => 'location', 'near' => array((double) $_GET['lng'], (double) $_GET['lat']), 'spherical' => 'true', 'maxDistance' => $distance));
//Redisアクセス
$redisData = Redis::connection();
foreach ($selectParData['results'] as $id => $obj) {
$key_Id = "parking_data_" . $obj['obj']['parking_space_id'];
$redisList = $redisData->get($key_Id);
$getredisList = json_decode($redisList, true, JSON_UNESCAPED_UNICODE);
$getDataList[] = array('parking_space_id' => $obj['obj']['parking_space_id'], 'lat' => $obj['obj']['lnglat'][0], 'lng' => $obj['obj']['lnglat'][1], 'name' => $getredisList[0]['parking_name'], 'prefecture' => $getredisList[0]['prefecture'], 'city' => $getredisList[0]['city'], 'address' => $getredisList[0]['address'], 'utilization_start_time' => $getredisList[0]['utilization_start_time'], 'utilization_end_time' => $getredisList[0]['utilization_end_time']);
}
$getDataList = array('results' => $getDataList);
//var_dump($latMin);
return json_encode($getDataList, true);
//return "aaa";
}