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

  • Application
  • ApplicationYAMLMapper
  • BoundingBox
  • Element
  • EntityHandler
  • InstanceConfiguration
  • InstanceConfigurationOptions
  • KeywordUpdater
  • MapbenderBundle
  • ProxyService
  • SecurityContext
  • Signer
  • Size
  • SourceEntityHandler
  • SourceInstanceEntityHandler
  • SourceInstanceItemEntityHandler
  • SourceItemEntityHandler
  • SourceMetadata
  • SQLSearchEngine
  • StateHandler
  • Template
  • Utils
  • XmlValidator

Interfaces

  • ContainingKeyword
  • ExtendedCollection
  • SearchEngine

Class Utils

The class with utility functions.

Namespace: Mapbender\CoreBundle\Component
Author: Paul Schmidt
Located at Mapbender/CoreBundle/Component/Utils.php

Methods summary

public static boolean
# getBool( boolean|null $booleanOrNull, boolean $nullable = false )

Checks the variable $booleanOrNull and returns the boolean or null.

Checks the variable $booleanOrNull and returns the boolean or null.

Parameters

$booleanOrNull
$nullable

Returns

boolean
if $nullable is false, otherwise boolean or null.
public static generated
# getHttpUrl( string $baseUrl, string $parameters )

Generats an URL from base url and GET parameters

Generats an URL from base url and GET parameters

Parameters

$baseUrl
A base URL
$parameters
GET Parameters as array or as string

Returns

generated
Url
public static boolean
# deleteFileAndDir( string $path )

Removes a file or directory (recursive)

Removes a file or directory (recursive)

Parameters

$path
tha path of file/directory

Returns

boolean
true if the file/directory is removed.
public static string
# validateUrl( string $url, array $paramsToRemove )

DEPRECATED, use Mapbender\CoreBundle\Utils\UrlUtil::validateUrl() Validates an URL

DEPRECATED, use Mapbender\CoreBundle\Utils\UrlUtil::validateUrl() Validates an URL

Parameters

$url
URL
$paramsToRemove
array of lower case parameter names to remove from url

Returns

string
URL without parameter $paramName
public static
# copyOrderRecursive( string $sourceOrder, string $destinationOrder )

Copies an order recursively.

Copies an order recursively.

Parameters

$sourceOrder
path to source order
$destinationOrder
path to destination order
public static null
# valueOrNull( mixed $scaleRecursive, mixed $trueValue, null $nullValue = null )

If value is null, return first value, else return second value

If value is null, return first value, else return second value

Parameters

$scaleRecursive
$trueValue
$nullValue

Returns

null
null
public static boolean
# hasValue( mixed & $data, mixed $key, mixed $value )

Has a value?

Has a value?

Parameters

$data
$key
$value

Returns

boolean
bool
public static
# replaceKey( array & $data, mixed $keyFrom, mixed $keyTo )

Replace array key

Replace array key

Parameters

$data
$keyFrom
$keyTo
public static string
# guidv4( )

Generates an UUID.

Generates an UUID.

Returns

string
uuid

Magic methods summary

Mapbender 3.0.6.0 API documenation API documentation generated by ApiGen 2.8.0