本文整理匯總了PHP中Info::setZone方法的典型用法代碼示例。如果您正苦於以下問題:PHP Info::setZone方法的具體用法?PHP Info::setZone怎麽用?PHP Info::setZone使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Info
的用法示例。
在下文中一共展示了Info::setZone方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: gmmktime
$zip = '';
}
$info->thumb = 'batchthumb/stats.jpg';
$info->origin = $origin;
$info->filesourceTitle = $fileTitle;
$info->access = $access;
$info->licence = $licence;
$info->pubDate = gmmktime();
$info->dateEndPrint = gmmktime(0, 0, 0, 9, 1, 2013);
$info->heat = 1;
$cat = array("TRANSPORT#STATION", "STATISTIQUES");
$info->setYakCat($cat);
$info->status = 1;
$info->print = 1;
$info->yakType = 3;
$info->setZone("PARIS");
$info->placeName = 'station ' . $title;
// NOTE, since it goes in the YAKDICO, we need to add the word 'station' before. If we do not all words 'CHATELET' will be detected by semantic
$locationQuery = 'station ' . $data[2] . ' ' . $title . ' ' . $zip . ' ' . $city . ', France';
$cat = array("TRANSPORT#STATION", "STATISTIQUES");
$info->setYakCat($cat);
$res = $info->saveToMongoDB($locationQuery, $debug, $updateFlag);
if (!empty($res['error'])) {
echo $res['error'];
echo '<br><b>BATCH FAILLED</b><br>';
exit;
}
foreach ($res as $k => $v) {
if (isset($v)) {
$results[$k] += $v;
}
示例2: gmmktime
}
$info->thumb = 'batchthumb/rentree.jpg';
$info->origin = $origin;
$info->filesourceTitle = $fileTitle;
$info->access = $access;
$info->licence = $licence;
$info->pubDate = gmmktime();
$info->dateEndPrint = gmmktime(0, 0, 0, 9, 1, 2013);
$info->heat = 1;
$cat = array("EDUCATION", "EDUCATION#ECOLE");
$info->setYakCat($cat);
$info->status = 1;
$info->print = 1;
$info->yakType = 3;
$info->setTel($data[5]);
$info->setZone("MONTPELLIER");
$info->placeName = $data[3];
$locationQuery = $data[7] . ' ' . $data[11] . ', ' . $data[13] . ', Montpellier, France';
//echo $locationQuery;
$res = $info->saveToMongoDB($locationQuery, $debug, $updateFlag);
if (!empty($res['error'])) {
echo $res['error'];
echo '<br><b>BATCH FAILLED</b><br>';
exit;
}
foreach ($res as $k => $v) {
if (isset($v)) {
$results[$k] += $v;
}
}
$results['parse']++;