当前位置: 首页>>代码示例>>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;未经允许,请勿转载。