Overview

Namespaces

  • Mapbender
    • Component
      • HTTP
    • CoreBundle
      • Command
      • Component
        • Exception
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
      • Element
        • Type
      • Entity
      • EventListener
      • Extension
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
      • Template
    • KmlBundle
      • Element
    • ManagerBundle
      • Controller
      • Form
        • DataTransformer
        • Type
    • MonitoringBundle
      • Command
      • Component
      • Controller
      • DependencyInjection
      • Entity
      • EventListener
      • Form
    • PrintBundle
      • Component
      • Controller
    • WmcBundle
      • Component
        • Exception
      • Element
        • Type
      • Entity
      • Form
        • Type
    • WmsBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Element
        • Type
      • Entity
      • Event
      • Form
        • EventListener
        • Type
    • WmtsBundle
      • Component
        • Exception
      • Controller
      • Entity
      • Form
        • Type
  • None
  • PHP

Classes

  • MapbenderWMC
  • WmcParser
  • WmcParser110
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Class WmcParser

Class that Parses WMS GetCapabilies Document Parses WMS GetCapabilities documents

Direct known subclasses

Mapbender\WmcBundle\Component\WmcParser110
Abstract
Namespace: Mapbender\WmcBundle\Component
Author: Karim Malhas
Author: Paul Schmidt
Located at Mapbender/WmcBundle/Component/WmcParser.php
Methods summary
public
# __construct( DOMDocument $doc )

Creates an instance

Creates an instance

Parameters

$doc
DOMDocument
$doc
protected string
# getValue( string $xpath, DOMNode $contextElm = null )

Finds the value

Finds the value

Parameters

$xpath
string
$xpath xpath expression
$contextElm
DOMNode
$contextElm the node to use as context for evaluating the XPath expression.

Returns

string
the value of item or the selected item or null
abstract public
# parse( )

Parses the capabilities document

Parses the capabilities document

public static DOMDocument
# createDocument( string $data, boolean $validate = false )

Creates a document

Creates a document

Parameters

$data
string
$data the string containing the XML
$validate
boolean
$validate to validate of xml

Returns

DOMDocument
a WMC document

Throws

Mapbender\CoreBundle\Component\Exception\XmlParseException
if a GetCapabilities xml is not valid
Mapbender\CoreBundle\Component\Exception\NotSupportedVersionException
if a wmc version is not supported
public static Mapbender\WmsBundle\Component\WmcParser110
# getParser( DOMDocument $doc )

Returns a wmc parser

Returns a wmc parser

Parameters

$doc
DOMDocument
$doc the WMC document

Returns

Mapbender\WmsBundle\Component\WmcParser110

Throws

Mapbender\CoreBundle\Component\Exception\NotSupportedVersionException
if a version is not supported
Properties summary
protected DOMDocument $doc
#

The XML representation of the Capabilites Document

The XML representation of the Capabilites Document

protected mixed $xpath
#

An Xpath-instance

An Xpath-instance

Mapbender3 API documenation API documentation generated by ApiGen 2.8.0