Mapbender 3.0.6.0 API documenation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Namespaces

  • FOM
    • CoreBundle
      • Component
      • DependencyInjection
      • Doctrine
        • Types
      • Form
        • DataTransformer
        • Type
    • ManagerBundle
      • Component
      • Configuration
      • Controller
      • DependencyInjection
        • Compiler
      • Form
        • Type
      • Routing
    • UserBundle
      • Command
      • Component
      • Controller
      • DependencyInjection
        • Factory
      • Entity
      • EventListener
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
        • Authentication
          • Provider
          • Token
        • Authorization
          • Voter
        • Firewall
  • Mapbender
    • Component
    • CoreBundle
      • Asset
      • Command
      • Component
        • Exception
      • Controller
      • DataFixtures
        • ORM
          • Application
      • DependencyInjection
        • Compiler
      • Element
        • DataTransformer
        • EventListener
        • Type
      • Entity
      • EventListener
      • Extension
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
      • Template
      • Tests
        • Controller
      • Utils
      • Validator
        • Constraints
    • DataSourceBundle
      • Component
        • Drivers
          • Interfaces
      • Controller
      • DependencyInjection
      • Element
        • Type
      • Entity
      • Extension
      • Tests
    • DigitizerBundle
      • Component
      • Element
        • Type
      • Entity
      • Utils
    • DrupalIntegrationBundle
      • DependencyInjection
      • Security
        • Authentication
          • Provider
          • Token
        • Authorization
          • Voter
        • Factory
        • Firewall
        • User
      • Session
    • KmlBundle
      • Element
    • ManagerBundle
      • Component
        • Exception
      • Controller
      • Form
        • DataTransformer
        • Type
      • Template
    • MobileBundle
      • DependencyInjection
      • Template
    • PrintBundle
      • Component
      • Element
        • Type
    • WmcBundle
      • Component
        • Exception
      • Element
        • Type
      • Entity
      • Form
        • Type
      • Tests
        • Component
    • WmsBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Element
        • DataTransformer
        • EventListener
        • Type
      • Entity
      • Event
      • Form
        • DataTransformer
        • EventListener
        • Type
  • None
  • OwsProxy3
    • CoreBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Entity
      • Event
      • EventListener
      • Worker
  • PHP

Classes

  • MapbenderWMC
  • WmcHandler
  • WmcParser
  • WmcParser110

Class WmcParser

Class that Parses WMC Document Parses WMC 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( Symfony\Component\DependencyInjection\ContainerInterface $container, DOMDocument $doc )

Creates an instance

Creates an instance

Parameters

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

Finds the value

Finds the value

Parameters

$xpath
xpath expression
$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
the string containing the XML
$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 DOMDocument
# loadDocument( string $file, boolean $validate = false )

Loads a wmc document from a file

Loads a wmc document from a file

Parameters

$file
path to wmc document
$validate
to validate of xml

Returns

DOMDocument
a WMC document

Throws

Mapbender\CoreBundle\Component\Exception\XmlParseException
if a file is not a wmc document.
public static Mapbender\WmcBundle\Component\WmcParser110
# getParser( Symfony\Component\DependencyInjection\ContainerInterface $container, DOMDocument $doc )

Returns a wmc parser

Returns a wmc parser

Parameters

$container
$doc
the WMC document

Returns

Mapbender\WmcBundle\Component\WmcParser110
WmcParser110

Throws

Mapbender\CoreBundle\Component\Exception\NotSupportedVersionException
if a version is not supported

Magic methods summary

Properties summary

protected Symfony\Component\DependencyInjection\ContainerInterface $container
#
protected DOMDocument $doc

Capabilities XML document

Capabilities XML document

#
protected mixed $xpath

An Xpath-instance

An Xpath-instance

#
Mapbender 3.0.6.0 API documenation API documentation generated by ApiGen 2.8.0