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

  • ArrayObject
  • ArrayUtil
  • ClassPropertiesParser
  • EntityAnnotationParser
  • EntityUtil
  • UrlUtil

Class EntityUtil

Description of EntityUtils

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

Methods summary

public static string
# getUniqueValue( Doctrine\ORM\EntityManager $em, string $entityName, string $uniqueField, string $toUniqueValue, string $suffix = "" )

Returns an unique value for an unique field.

Returns an unique value for an unique field.

Parameters

$em
an entity manager
$entityName
entity name
$uniqueField
name of the unique field
$toUniqueValue
value to the unique field
$suffix
suffix to generate an unique value

Returns

string
an unique value
public static string
# getRealClass( mixed $entity )

Gets the real class name of an object that could be an object of proxy class.

Gets the real class name of an object that could be an object of proxy class.

Parameters

$entity
string | entity object

Returns

string
full class name
public static string
# getGetter( mixed $entity, string $property )

Returns a "getter" method name for an property equal to Doctrine conventions.

Returns a "getter" method name for an property equal to Doctrine conventions.

Parameters

$entity
object or class
$property
a property name

Returns

string
a "getter" name
public static string
# getValueFromGetter( mixed $entity, string $property )

Returns a "getter" method name for an property equal to Doctrine conventions.

Returns a "getter" method name for an property equal to Doctrine conventions.

Parameters

$entity
object or class
$property
a property name

Returns

string
a "getter" name
public static string
# getSetter( mixed $entity, string $property )

Returns a "getter" method name for an property equal to Doctrine conventions.

Returns a "getter" method name for an property equal to Doctrine conventions.

Parameters

$entity
object or class
$property
a property name

Returns

string
a "getter" name
public static ReflectionProperty[]
# getProperties( mixed $entity, null $filter = null )

Parameters

$entity
$filter

Returns

ReflectionProperty[]
\ReflectionProperty[]
public static integer|string
# getDataType( mixed $ormType )

Parameters

$ormType

Returns

integer|string
int|string

Throws

Exception
\Exception
public static null|ReflectionMethod
# getReturnMethod( mixed $fieldName, ReflectionClass $class )

Parameters

$fieldName
$class

Returns

null|ReflectionMethod
null|\ReflectionMethod
public static null|ReflectionMethod
# getSetMethod( mixed $fieldName, ReflectionClass $class )

Parameters

$fieldName
$class

Returns

null|ReflectionMethod
null|\ReflectionMethod
public static null|ReflectionMethod
# getMethodName( mixed $fieldName, mixed $prefix, ReflectionClass $class )

Parameters

$fieldName
$prefix
$class

Returns

null|ReflectionMethod
null|\ReflectionMethod

Magic methods summary

Constants summary

string GET
#'get'
string SET
#'set'
string ADD
#'add'
string HAS
#'has'
string IS
#'is'
string GETTER
#'getter'
string SETTER
#'setter'
string TOSET
#'toset'
string HAS_METHOD
#'hasMethod'
string IS_METHOD
#'isMethod'
Mapbender 3.0.6.0 API documenation API documentation generated by ApiGen 2.8.0