PHP Classes
elePHPant
Icontem

File: docs/phpGPX-Parsers-TrackParser.md

Recommend this page to a friend!
  Classes of Jakub Dubec  >  PHP GPX Library  >  docs/phpGPX-Parsers-TrackParser.md  >  Download  
File: docs/phpGPX-Parsers-TrackParser.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,713 bytes
 

Contents

Class file image Download

phpGPX\Parsers\TrackParser

Class TrackParser

  • Class name: TrackParser
  • Namespace: phpGPX\Parsers
  • This is an abstract class

Properties

$tagName

public mixed $tagName = 'trk'

  • Visibility: public
  • This property is static.

$attributeMapper

private mixed $attributeMapper = array('name' => array('name' => 'name', 'type' => 'string'), 'cmt' => array('name' => 'comment', 'type' => 'string'), 'desc' => array('name' => 'description', 'type' => 'string'), 'src' => array('name' => 'source', 'type' => 'string'), 'link' => array('name' => 'links', 'type' => 'array'), 'number' => array('name' => 'number', 'type' => 'integer'), 'type' => array('name' => 'type', 'type' => 'string'), 'extensions' => array('name' => 'extensions', 'type' => 'object'), 'trkseg' => array('name' => 'segments', 'type' => 'array'))

  • Visibility: private
  • This property is static.

Methods

parse

array<mixed,\phpGPX\Models\Track> phpGPX\Parsers\TrackParser::parse(\SimpleXMLElement $nodes)

  • Visibility: public
  • This method is static.

Arguments

  • $nodes SimpleXMLElement

toXML

\DOMElement phpGPX\Parsers\TrackParser::toXML(\phpGPX\Models\Track $track, \DOMDocument $document)

  • Visibility: public
  • This method is static.

Arguments

toXMLArray

array<mixed,\DOMElement> phpGPX\Parsers\TrackParser::toXMLArray(array $tracks, \DOMDocument $document)

  • Visibility: public
  • This method is static.

Arguments

  • $tracks array
  • $document DOMDocument