PHP Classes
elePHPant
Icontem

File: docs/phpGPX-Parsers-SegmentParser.md

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

Contents

Class file image Download

phpGPX\Parsers\SegmentParser

Class SegmentParser

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

Properties

$tagName

public mixed $tagName = 'trkseg'

  • Visibility: public
  • This property is static.

Methods

parse

array<mixed,\phpGPX\Models\Segment> phpGPX\Parsers\SegmentParser::parse($nodes)

  • Visibility: public
  • This method is static.

Arguments

  • $nodes mixed - &lt;p&gt;\SimpleXMLElement[]&lt;/p&gt;

toXML

\DOMElement phpGPX\Parsers\SegmentParser::toXML(\phpGPX\Models\Segment $segment, \DOMDocument $document)

  • Visibility: public
  • This method is static.

Arguments

toXMLArray

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

  • Visibility: public
  • This method is static.

Arguments

  • $segments array
  • $document DOMDocument