Skip to the content.

phpGPX\Parsers\TrackParser

Class TrackParser

Properties

$tagName

public mixed $tagName = 'trk'

$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'))

Methods

parse

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

Arguments

toXML

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

Arguments

toXMLArray

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

Arguments