Skip to the content.

phpGPX\Parsers\RouteParser

Class RouteParser

Properties

$tagName

public mixed $tagName = 'rte'

$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'), 'rtep' => array('name' => 'points', 'type' => 'array'))

Methods

parse

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

Arguments

toXML

\DOMElement phpGPX\Parsers\RouteParser::toXML(\phpGPX\Models\Route $route, \DOMDocument $document)

Arguments

toXMLArray

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

Arguments