本文整理匯總了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();