當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Source::deleteAllLocation方法代碼示例

本文整理匯總了PHP中Source::deleteAllLocation方法的典型用法代碼示例。如果您正苦於以下問題:PHP Source::deleteAllLocation方法的具體用法?PHP Source::deleteAllLocation怎麽用?PHP Source::deleteAllLocation使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Source的用法示例。


在下文中一共展示了Source::deleteAllLocation方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: unset

     */
 } else {
     if (isset($_SESSION['install']) && $_SESSION['install'] == 'sources') {
         unset($_SESSION['install']);
         print '<div class="info column"><ul>';
         foreach ($_SESSION['done'] as $done) {
             print '<li>' . $done . '....<strong>SUCCESS</strong></li>';
         }
         if (isset($_SESSION['sources']) && count($_SESSION['sources']) > 0) {
             $sources = $_SESSION['sources'];
             print '<li>Insert data in source table....<img src="../images/loading.gif" /></li></ul></div>';
             flush();
             @ob_flush();
             include_once '../require/class.Source.php';
             $globalDebug = FALSE;
             Source::deleteAllLocation();
             foreach ($sources as $source) {
                 if (isset($source['latitude']) && $source['latitude'] != '') {
                     Source::addLocation($source['name'], $source['latitude'], $source['longitude'], $source['altitude'], $source['city'], $source['country'], 'antenna.png');
                 }
             }
             $_SESSION['done'] = array_merge($_SESSION['done'], array('Insert data in source table'));
             unset($_SESSION['sources']);
         }
         /*
         if (isset($globalIVAO) && $globalIVAO) $_SESSION['install'] = 'ivao';
         else $_SESSION['install'] = 'finish';
         */
         $_SESSION['install'] = 'finish';
         print "<script>window.location = 'index.php?" . rand() . "&next=" . $_SESSION['install'] . "';</script>";
     } else {
開發者ID:kletellier,項目名稱:FlightAirMap,代碼行數:31,代碼來源:index.php

示例2: Source

     	include_once('class.update_db.php');
     	$globalDebug = FALSE;
     	update_db::update_ivao();
     	$_SESSION['done'] = array_merge($_SESSION['done'],array('Populate ivao table with externals data'));
     
     	$_SESSION['install'] = 'finish';
     	print "<script>window.location = 'index.php?".rand()."&next=".$_SESSION['install']."';</script>";
     */
 } else {
     if (isset($_SESSION['install']) && $_SESSION['install'] == 'sources') {
         if (isset($_SESSION['sources']) && count($_SESSION['sources']) > 0) {
             $sources = $_SESSION['sources'];
             include_once '../require/class.Source.php';
             $globalDebug = FALSE;
             $Source = new Source();
             $Source->deleteAllLocation();
             foreach ($sources as $src) {
                 if (isset($src['latitude']) && $src['latitude'] != '') {
                     $Source->addLocation($src['name'], $src['latitude'], $src['longitude'], $src['altitude'], $src['city'], $src['country'], 'antenna.png');
                 }
             }
             $_SESSION['done'] = array_merge($_SESSION['done'], array('Insert data in source table'));
             unset($_SESSION['sources']);
         }
         /*
         if (isset($globalIVAO) && $globalIVAO) $_SESSION['install'] = 'ivao';
         else $_SESSION['install'] = 'finish';
         */
         if (isset($globalVATSIM) && $globalVATSIM && (isset($globalIVAO) && $globalIVAO)) {
             $_SESSION['install'] = 'vatsim';
             if (file_exists('tmp/ivae_feb2013.zip')) {
開發者ID:dedevillela,項目名稱:BravoHotelZulu,代碼行數:31,代碼來源:install-action.php


注:本文中的Source::deleteAllLocation方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。