本文整理汇总了PHP中Place::setWeb方法的典型用法代码示例。如果您正苦于以下问题:PHP Place::setWeb方法的具体用法?PHP Place::setWeb怎么用?PHP Place::setWeb使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Place
的用法示例。
在下文中一共展示了Place::setWeb方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$content = $data[5] . "<br>";
} else {
$content = "";
}
} elseif (!empty($data[5])) {
$title = $data[5];
$content = "";
}
$place->title = $title;
$place->content = $content;
$place->origin = $origin;
$place->filesourceTitle = $fileTitle;
$place->licence = $licence;
$place->setTel($data[16], "tel");
$place->setMail($data[18]);
$place->setWeb($data[19]);
$place->setZone("MONTPELLIER");
// YakCat
$cat = array("GEOLOCALISATION", "GEOLOCALISATION#YAKDICO");
$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];
}
示例2: empty
$debug = 0;
$row = 0;
$updateFlag = empty($_GET['updateFlag']) ? 0 : 1;
$results = array('row' => 0, 'rejected' => 0, 'parse' => 0, 'duplicate' => 0, 'insert' => 0, 'locErr' => 0, 'update' => 0, 'callGMAP' => 0, "error" => 0, "record" => array());
if (($handle = fopen($filenameInput, "r")) !== FALSE) {
while (($data = fgetcsv($handle, 1000, ";")) !== FALSE) {
if ($row > 0) {
foreach ($data as $key => &$value) {
$value = utf8_encode($value);
}
$currentPlace = new Place();
$currentPlace->title = $data[4];
$currentPlace->origin = $origin;
$currentPlace->filesourceTitle = $fileTitle;
$currentPlace->licence = $licence;
$currentPlace->setWeb($data[8]);
//Gestion des horaires et fermetures des musées
if ($data[2] != "NON" && empty($data[9]) && empty($data[10])) {
if ($data[2] == "OUI") {
$currentPlace->contact["closing"] = "Fermé";
} else {
$currentPlace->contact["closing"] = $data[2];
}
} else {
$currentPlace->contact->closing = $data[9];
$currentPlace->contact->opening = $data[10];
if (!empty($data[11])) {
$currentPlace->contact->sopening = "Nocturnes : " . $data[11];
}
}
$currentPlace->setTagIndoor();