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

  • Clipping
  • CommonProxy
  • ProxyQuery
  • SrsPoint
  • Utils
  • WfsProxy
  • WmsProxy

Class ProxyQuery

ProxyQuery class provides methods for

Namespace: OwsProxy3\CoreBundle\Component
Author: A.R.Pour
Author: Paul Schmidt
Located at OwsProxy3/CoreBundle/Component/ProxyQuery.php

Methods summary

public static OwsProxy3\CoreBundle\Component\ProxyQuery
# createFromUrl( string $url, string $user = null, string $password = null, array $headers = array(), array $getParams = array(), array $postParams = array(), string $content = null )

Creates an instance from parameters

Creates an instance from parameters

Parameters

$url
the url
$user
the user name for basic authentication
$password
the user password for basic authentication
$headers
the HTTP headers
$getParams
the GET parameters
$postParams
the POST parameters
$content
the POST content

Returns

OwsProxy3\CoreBundle\Component\ProxyQuery
a new instance

Throws

OwsProxy3\CoreBundle\Component\Exception\HTTPStatus502Exception
if the host is not defined at $url
public static OwsProxy3\CoreBundle\Component\ProxyQuery
# createFromRequest( Symfony\Component\HttpFoundation\Request $request )

Creates an instance

Creates an instance

Parameters

$request

Returns

OwsProxy3\CoreBundle\Component\ProxyQuery
a new instance

Throws

OwsProxy3\CoreBundle\Component\Exception\HTTPStatus502Exception
if the host is not defined
public
# addPostParameter( string $name, string $value )

Adds a POST parameter

Adds a POST parameter

Parameters

$name
$value
public
# addGetParameter( string $name, string $value )

Adds a GET parameter

Adds a GET parameter

Parameters

$name
$value
public
# addQueryParameter( string $name, string $value )

Adds a POST/GET parameter

Adds a POST/GET parameter

Parameters

$name
$value
public string
# getPostQueryString( )

Returns the query string for POST request

Returns the query string for POST request

Returns

string
the query string for POST request
public string
# getContent( )

Returns the POST content

Returns the POST content

Returns

string
content
public string
# getMethod( )

Returns the GET/POST method

Returns the GET/POST method

Returns

string
method
public string
# getRowUrl( )

Returns the row url (without GET parameter)

Returns the row url (without GET parameter)

Returns

string
url
public array
# getHeaders( )

Returns the headers

Returns the headers

Returns

array
headers
public array
# setHeaders( mixed $headers )

Sets the headers

Sets the headers

Returns

array
headers
public array
# addHeader( mixed $header )

Sets the headers

Sets the headers

Returns

array
headers
public string
# getGetUrl( )

Generats the url for HTTP GET

Generats the url for HTTP GET

Returns

string
the HTTP GET url
public string|null
# getGetPostParamValue( string $name, boolean $ignoreCase = false )

Returns the parameter value from GET/POST parameters

Returns the parameter value from GET/POST parameters

Parameters

$name
the parameter name
$ignoreCase
to ignore the parameter name case sensitivity

Returns

string|null
the parameter value or null
public string|null
# getGetParamValue( string $name, boolean $ignoreCase = false )

Returns the parameter value from GET parameters

Returns the parameter value from GET parameters

Parameters

$name
the parameter name
$ignoreCase
to ignore the parameter name case sensitivity

Returns

string|null
the parameter value or null
public string|null
# getPostParamValue( string $name, boolean $ignoreCase = false )

Returns the parameter value from POST parameters

Returns the parameter value from POST parameters

Parameters

$name
the parameter name
$ignoreCase
to ignore the parameter name case sensitivity

Returns

string|null
the parameter value or null
public boolean
# removeGetParameter( string $name )

Removes a GET parameter.

Removes a GET parameter.

Parameters

$name
parameter name

Returns

boolean
true if parameter removed
public boolean
# removePostParameter( string $name )

Removes a POST parameter.

Removes a POST parameter.

Parameters

$name
parameter name

Returns

boolean
true if parameter removed
public boolean
# hasGetPostParamValue( string $name, boolean $ignoreCase = false )

Checks if a GET/POST parameter exists

Checks if a GET/POST parameter exists

Parameters

$name
the parameter name
$ignoreCase
to ignore the parameter name case sensitivity

Returns

boolean
true if a parameter exists
public boolean
# hasGetParamValue( string $name, boolean $ignoreCase = false )

Checks if a GET parameter exists

Checks if a GET parameter exists

Parameters

$name
the parameter name
$ignoreCase
to ignore the parameter name case sensitivity

Returns

boolean
true if a parameter exists
public boolean
# hasPostParamValue( string $name, boolean $ignoreCase = false )

Checks if a POST parameter exists

Checks if a POST parameter exists

Parameters

$name
the parameter name
$ignoreCase
to ignore the parameter name case sensitivity

Returns

boolean
true if a parameter exists
public
# getServiceType( )

Magic methods summary

Properties summary

protected string $rowUrl

the parsed url (PHP parse_url()) without get parameters

the parsed url (PHP parse_url()) without get parameters

#
protected string $method

HTTP method (GET/POST)

HTTP method (GET/POST)

#
protected array $getParams

the GET parameters

the GET parameters

#
protected array $postParams

the POST parameter

the POST parameter

#
protected string $content

the POST content

the POST content

#
protected array $headers

the query headers

the query headers

#
Mapbender 3.0.6.0 API documenation API documentation generated by ApiGen 2.8.0