本文整理汇总了PHP中Place::prettyLog方法的典型用法代码示例。如果您正苦于以下问题:PHP Place::prettyLog方法的具体用法?PHP Place::prettyLog怎么用?PHP Place::prettyLog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Place
的用法示例。
在下文中一共展示了Place::prettyLog方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Place
$form->addAttribute('level','exact');
*/
// CREATE INSERT IN DB
$currentPlace = new Place();
$currentPlace->title = $streetName;
$currentPlace->content = $streetHisto;
$currentPlace->origin = $origin;
$currentPlace->filesourceTitle = $fileTitle;
$currentPlace->licence = $licence;
// YakCat
$cat = array("GEOLOCALISATION#RUE", "GEOLOCALISATION");
$currentPlace->setYakCat($cat);
$currentPlace->zone = 1;
$locationQuery = $streetName . ',Paris, France';
$res = $currentPlace->saveToMongoDB($locationQuery, $debug, $updateFlag);
foreach ($res as $k => $v) {
if (isset($v)) {
$results[$k] += $v;
}
}
$results['parse']++;
}
}
$results['row']++;
$row++;
}
fclose($handle);
}
//$res = $ontolgyXML->asXML($outputFile);
$currentPlace->prettyLog($results);
示例2: foreach
$place->setYakCat($cat);
$place->setYakCat(array($data[9]));
if (!empty($data[33]) || !empty($data[34]) || !empty($data[20])) {
$place->setTagCarPark();
}
$transportation = "";
if (!empty($data[37])) {
$transportation = "Tram: " . $data[37] . "<br>";
}
if (!empty($data[38])) {
$transportation = "Bus: " . $data[37];
}
$place->contact->transportation = $transportation;
$locationQuery = $data[10] . ', ' . $data[11] . ' ' . $data[12] . ', France';
$res = $place->saveToMongoDB($locationQuery, $debug, $updateFlag);
foreach ($res as $k => $v) {
if (isset($v)) {
$results[$k] += $v;
}
}
$results['parse']++;
}
$results['row']++;
$row++;
}
fclose($handle);
$place->prettyLog($results);
}
?>
</body>
</html>