Airport Guide Documentation

SitemapController extends BaseController
in package

Table of Contents

Methods

airlineIndex()  : void
This function is used to generate airline sitemap from external API data.
allIndex()  : void
This function is used to generate comprehensive sitemap index with all sitemap types.
cityAllIndex()  : void
This function is used to generate routes sitemap for airports with pagination tracking.
cityIndex()  : mixed
cityIndexNew()  : void
This function is used to process airport cities data and populate city master database.
cityIndexTest()  : void
This function is used to generate city-based XML sitemap with pagination and progress tracking.
diagramIndex()  : void
This function is used to generate diagram sitemap for airport diagrams and maps.
directorySitemap()  : void
This function is used to generate directory sitemap for business listings at airports.
index()  : void
This function is used to generate comprehensive sitemap with airport information and services.
terminalDiagramIndex()  : void
This function is used to generate terminal diagram sitemap for airport terminal diagrams.
terminalIndex()  : void
This function is used to generate terminal-specific sitemap for airport terminals.

Methods

airlineIndex()

This function is used to generate airline sitemap from external API data.

public airlineIndex(Request $request) : void

This method retrieves airline information from an external GIS API and generates a sitemap specifically for airline-related pages. It processes the API response and renders an airline sitemap view for search engine optimization of airline content.

Parameters
$request : Request

The HTTP request instance

Tags
uses
getInfoByCurl()

To fetch airline data from external GIS API

uses
view()

For rendering the airline sitemap template

throws
Exception

When the external API request fails

Return values
void

Renders the airline sitemap view and terminates execution

allIndex()

This function is used to generate comprehensive sitemap index with all sitemap types.

public allIndex(Request $request) : void

This method creates a master sitemap index that includes references to all available sitemap types including general sitemap, airport documents, and airline sitemaps. It organizes airport information by state and airport name for comprehensive coverage.

Parameters
$request : Request

The HTTP request instance

Tags
uses
AirportsAirportflyer

Model to retrieve airport information

uses
view()

For rendering the sitemap index template

Return values
void

Renders the sitemap index view

cityAllIndex()

This function is used to generate routes sitemap for airports with pagination tracking.

public cityAllIndex(Request $request) : void

This method creates a routes sitemap by processing airports that haven't been processed yet (sitemap_flag = 0). It retrieves a limited batch of airports, generates the routes sitemap view, and tracks progress to ensure all airports are eventually processed.

Parameters
$request : Request

The HTTP request instance

Tags
uses
AirportsAirportflyer

Model to retrieve unprocessed airport data

uses
view()

For rendering the routes sitemap template

uses
orderBy()

To sort airports by state and name

uses
take()

To limit the number of airports processed per batch

Return values
void

Renders the routes sitemap view or outputs completion message

cityIndex()

public cityIndex(Request $request) : mixed
Parameters
$request : Request

cityIndexNew()

This function is used to process airport cities data and populate city master database.

public cityIndexNew(Request $request) : void

This method retrieves airport information in paginated batches and fetches associated city data from an external GIS API for each airport. It processes city information, creates standardized slugs, and stores the data in the CityMaster table for sitemap generation and content organization.

Parameters
$request : Request

The HTTP request instance

Tags
see
Request::segments()

To extract page number from URL

uses
AirportsAirportflyer

Model to retrieve paginated airport data

uses
getInfoByCurl()

To fetch city data from external GIS API

uses
CityMaster

Model to store processed city data

uses
str_replace()

To create URL-friendly city slugs

throws
Exception

When external API request fails

Return values
void

Outputs completion message and terminates execution

cityIndexTest()

This function is used to generate city-based XML sitemap with pagination and progress tracking.

public cityIndexTest(Request $request) : void

This method creates a comprehensive XML sitemap for city routes by querying airport direction data from a PostgreSQL database. It implements pagination to handle large datasets, tracks progress through SitemapLogs, and generates XML sitemap entries with proper SEO attributes including priority and change frequency for search engine optimization.

Parameters
$request : Request

The HTTP request instance

Tags
uses
ini_set()

To extend execution time for large data processing

uses
SitemapLogs

Model to track sitemap generation progress

uses
DB::connection()

To query PostgreSQL database

uses
AirportsAirportflyer

Model to retrieve airport information

uses
json_decode()

To process place data from database

uses
env()

To retrieve application URL

see
Request::segments()

To extract URL segments

throws
Exception

When database queries fail or execution time exceeds limit

Return values
void

Outputs XML sitemap content and terminates execution

diagramIndex()

This function is used to generate diagram sitemap for airport diagrams and maps.

public diagramIndex(Request $request) : void

This method creates a sitemap specifically for airport diagram and map pages by retrieving all airport information and rendering a specialized sitemap view for diagram-related content.

Parameters
$request : Request

The HTTP request instance

Tags
see
Request::segments()

To extract URL segments

see
Redirector::to()

To redirect on error

uses
AirportsAirportflyer

Model to retrieve airport information

uses
view()

For rendering the diagram sitemap template

uses
config()

To retrieve CMS base URL

Return values
void

Renders the diagram sitemap view or redirects on error

directorySitemap()

This function is used to generate directory sitemap for business listings at airports.

public directorySitemap(Request $request) : void

This method creates a sitemap specifically for business directory pages by retrieving business details grouped by ICAO identifier. It processes business data for airports and renders a specialized sitemap view for directory-related content.

Parameters
$request : Request

The HTTP request instance

Tags
uses
BusinessDetailsFS

Model to retrieve business information

uses
groupBy()

To organize businesses by ICAO identifier

uses
toArray()

To convert grouped data to array format

uses
view()

For rendering the directory sitemap template

Return values
void

Renders the directory sitemap view or outputs completion message

index()

This function is used to generate comprehensive sitemap with airport information and services.

public index(Request $request) : void

This method creates a detailed sitemap by retrieving airport data from multiple sources including state information, airport details, and various service providers (rental cars, parking, hotels, shuttles, terminals). It processes airport information with associated services and terminal details to generate a complete sitemap for search engine optimization.

Parameters
$request : Request

The HTTP request instance

Tags
uses
State

Model to retrieve airport state information

uses
DB::table()

To query airport information with joins

uses
config()

To retrieve airport database constants

uses
RentalCarsAirporflyer

Model to retrieve rental car services

uses
ParkingAirportflyer

Model to retrieve parking services

uses
HotelsAirportFlyer

Model to retrieve hotel services

uses
ShuttleLimoTaxiTransitAirportflyer

Model to retrieve shuttle services

uses
TerminalDetails

Model to retrieve terminal information

uses
TerminalImages

Model to retrieve terminal level images

uses
view()

For rendering the sitemap template

Return values
void

Renders the sitemap view and terminates execution

terminalDiagramIndex()

This function is used to generate terminal diagram sitemap for airport terminal diagrams.

public terminalDiagramIndex(Request $request) : void

This method creates a sitemap specifically for airport terminal diagram pages by retrieving airport information with ICAO identifiers and their associated terminal details. It processes terminal data and renders a specialized sitemap view for terminal diagram content.

Parameters
$request : Request

The HTTP request instance

Tags
see
Request::segments()

To extract URL segments

see
Redirector::to()

To redirect on error

uses
AirportsAirportflyer

Model to retrieve airport information

uses
TerminalDetails

Model to retrieve terminal information

uses
view()

For rendering the terminal diagram sitemap template

uses
config()

To retrieve CMS base URL

Return values
void

Renders the terminal diagram sitemap view or redirects on error

terminalIndex()

This function is used to generate terminal-specific sitemap for airport terminals.

public terminalIndex(Request $request) : void

This method creates a sitemap specifically for airport terminal pages by retrieving airport information with ICAO identifiers and their associated terminal details. It processes terminal data and renders a specialized sitemap view for terminal-related content.

Parameters
$request : Request

The HTTP request instance

Tags
see
Request::segments()

To extract URL segments

see
Redirector::to()

To redirect on error

uses
AirportsAirportflyer

Model to retrieve airport information

uses
TerminalDetails

Model to retrieve terminal information

uses
view()

For rendering the terminal sitemap template

uses
config()

To retrieve CMS base URL

Return values
void

Renders the terminal sitemap view or redirects on error


        
On this page

Search results