PHP Classes
elePHPant
Icontem

File: docs/phpGPX-phpGPX.md

Recommend this page to a friend!
  Classes of Jakub Dubec  >  PHP GPX Library  >  docs/phpGPX-phpGPX.md  >  Download  
File: docs/phpGPX-phpGPX.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: Merge remote-tracking branch 'origin/master'
Date: 9 months ago
Size: 1,846 bytes
 

Contents

Class file image Download

phpGPX\phpGPX

Class phpGPX

  • Class name: phpGPX
  • Namespace: phpGPX

Constants

JSON_FORMAT

const JSON_FORMAT = 'json'

XML_FORMAT

const XML_FORMAT = 'xml'

PACKAGE_NAME

const PACKAGE_NAME = 'phpGPX'

VERSION

const VERSION = '1.0'

Properties

$CALCULATE_STATS

public boolean $CALCULATE_STATS = true

Create Stats object for each track, segment and route

  • Visibility: public
  • This property is static.

$SORT_BY_TIMESTAMP

public boolean $SORT_BY_TIMESTAMP = false

Additional sort based on timestamp in Routes & Tracks on XML read.

Disabled by default, data should be already sorted.

  • Visibility: public
  • This property is static.

$DATETIME_FORMAT

public string $DATETIME_FORMAT = 'c'

Default DateTime output format in JSON serialization.

  • Visibility: public
  • This property is static.

$DATETIME_TIMEZONE_OUTPUT

public string $DATETIME_TIMEZONE_OUTPUT = 'UTC'

Default timezone for display.

Data are always stored in UTC timezone.

  • Visibility: public
  • This property is static.

$PRETTY_PRINT

public boolean $PRETTY_PRINT = true

Pretty print.

  • Visibility: public
  • This property is static.

Methods

load

\phpGPX\Models\GpxFile phpGPX\phpGPX::load($path)

Load GPX file.

  • Visibility: public
  • This method is static.

Arguments

  • $path mixed

parse

\phpGPX\Models\GpxFile phpGPX\phpGPX::parse($xml)

Parse GPX data string.

  • Visibility: public
  • This method is static.

Arguments

  • $xml mixed

getSignature

string phpGPX\phpGPX::getSignature()

Create library signature from name and version.

  • Visibility: public
  • This method is static.