PHP Classes
elePHPant
Icontem

File: docs/phpGPX-Models-GpxFile.md

Recommend this page to a friend!
  Classes of Jakub Dubec  >  PHP GPX Library  >  docs/phpGPX-Models-GpxFile.md  >  Download  
File: docs/phpGPX-Models-GpxFile.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP GPX Library
Parser and generator of GPS Exchange files
Author: By
Last change:
Date: 1 year ago
Size: 1,772 bytes
 

Contents

Class file image Download

phpGPX\Models\GpxFile

Class GpxFile Representation of GPX file.

Properties

$waypoints

public array<mixed,\phpGPX\Models\Point> $waypoints

A list of waypoints.

  • Visibility: public

$routes

public array<mixed,\phpGPX\Models\Route> $routes

A list of routes.

  • Visibility: public

$tracks

public array<mixed,\phpGPX\Models\Track> $tracks

A list of tracks.

  • Visibility: public

$metadata

public \phpGPX\Models\Metadata $metadata

Metadata about the file.

The original GPX 1.1 attribute.

  • Visibility: public

$extensions

public \phpGPX\Models\Extensions $extensions

  • Visibility: public

$creator

public string $creator

Creator of GPX file.

  • Visibility: public

Methods

__construct

mixed phpGPX\Models\GpxFile::__construct()

GpxFile constructor.

  • Visibility: public

toArray

array phpGPX\Models\Summarizable::toArray()

Serialize object to array

toJSON

string phpGPX\Models\GpxFile::toJSON()

Return JSON representation of GPX file with statistics.

  • Visibility: public

toXML

\DOMDocument phpGPX\Models\GpxFile::toXML()

Create XML representation of GPX file.

  • Visibility: public

save

mixed phpGPX\Models\GpxFile::save(string $path, string $format)

Save data to file according to selected format.

  • Visibility: public

Arguments

  • $path string
  • $format string