Mapbender 3.0.6.2 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

  • ElementIdTransformer
  • ObjectArrayTransformer
  • ObjectIdTransformer

Class ObjectIdTransformer

Class ObjectIdTransformer transforms a value between different representations

Mapbender\CoreBundle\Form\DataTransformer\ObjectIdTransformer implements Symfony\Component\Form\DataTransformerInterface
Namespace: Mapbender\CoreBundle\Form\DataTransformer
Author: Paul Schmidt
Located at Mapbender/CoreBundle/Form/DataTransformer/ObjectIdTransformer.php

Methods summary

public
# __construct( Doctrine\Common\Persistence\ObjectManager $om, string $className )

Creates an instance.

Creates an instance.

Parameters

$om
an object manager
$className
an entity class name
public Doctrine\Common\Collections\ArrayCollection|null|Doctrine\Entity|object
# transform( mixed $data )

Transforms id/ids to an object/objects.

Transforms id/ids to an object/objects.

Parameters

$data
id(string) | array with ids

Returns

Doctrine\Common\Collections\ArrayCollection|null|Doctrine\Entity|object
object
public mixed
# reverseTransform( mixed $data )

Transforms a object to id/ids.

Transforms a object to id/ids.

Parameters

$data
object to reverse transform ArrayCollection | array | Entity object

Returns

mixed
string | array id/ids from $data
public Doctrine\Common\Persistence\ObjectRepository
# getObjectRepository( )

Returns

Doctrine\Common\Persistence\ObjectRepository
\Doctrine\Common\Persistence\ObjectRepository

Magic methods summary

Mapbender 3.0.6.2 API documenation API documentation generated by ApiGen 2.8.0