Overview

Namespaces

  • Mapbender
    • Component
      • HTTP
    • CoreBundle
      • Command
      • Component
        • Exception
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
      • Element
        • Type
      • Entity
      • EventListener
      • Extension
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
      • Template
    • KmlBundle
      • Element
    • ManagerBundle
      • Controller
      • Form
        • DataTransformer
        • Type
    • MonitoringBundle
      • Command
      • Component
      • Controller
      • DependencyInjection
      • Entity
      • EventListener
      • Form
    • PrintBundle
      • Component
      • Controller
    • WmcBundle
      • Component
        • Exception
      • Element
        • Type
      • Entity
      • Form
        • Type
    • WmsBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Element
        • Type
      • Entity
      • Event
      • Form
        • EventListener
        • Type
    • WmtsBundle
      • Component
        • Exception
      • Controller
      • Entity
      • Form
        • Type
  • None
  • PHP

Classes

  • Application
  • ApplicationState
  • Contact
  • Element
  • Keyword
  • Layerset
  • Source
  • SourceInstance
  • SRS
  • State
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Class Element

Element configuration entity

Namespace: Mapbender\CoreBundle\Entity
Author: Christian Wygoda <christian.wygoda@wheregroup.com>
ORM\Entity
ORM\Table(name="mb_core_element")
Located at Mapbender/CoreBundle/Entity/Element.php
Methods summary
public
# __construct( )
public
# setId( mixed $id )

Set id. DANGER

Set id. DANGER

Set the entity id. DO NOT USE THIS unless you know what you're doing. Probably the only place where this should be used is in the ApplicationYAMLMapper class. Maybe this could be done using a proxy class instead?

public integer
# getId( )

Get id

Get id

Returns

integer
public
# setTitle( string $title )

Set title

Set title

Parameters

$title
string
$title
public string
# getTitle( )

Get title

Get title

Returns

string
public
# setClass( string $class )

Set class

Set class

Parameters

$class
string
$class
public string
# getClass( )

Get class

Get class

Returns

string
public
# setConfiguration( array $configuration )

Set configuration

Set configuration

Parameters

$configuration
array
$configuration
public array
# getConfiguration( )

Get configuration

Get configuration

Returns

array
public
# setRegion( string $region )

Set region

Set region

Parameters

$region
string
$region
public string
# getRegion( )

Get region

Get region

Returns

string
public
# setEnabled( boolean $enabled )

Set enabled

Set enabled

Parameters

$enabled
boolean
$enabled
public boolean
# getEnabled( )

Is enabled?

Is enabled?

Returns

boolean
public
# setWeight( integer $weight )

Set weight

Set weight

Parameters

$weight
integer
$weight
public integer
# getWeight( )

Get weight

Get weight

Returns

integer
public
# setApplication( Mapbender\CoreBundle\Entity\Application $application )

Set application

Set application

Parameters

$application
Mapbender\CoreBundle\Entity\Application
$application
public Mapbender\CoreBundle\Entity\Application
# getApplication( )

Get application

Get application

Returns

Mapbender\CoreBundle\Entity\Application
public
# __toString( )
Properties summary
protected integer $id
#

$id

$id

ORM\Column(type="integer")

ORM\GeneratedValue(strategy="AUTO")

ORM\Id

protected string $title
#

$title The element title

$title The element title

Assert\NotBlank()

ORM\Column(type="string",

length=128)
protected string $class
#

$class The element class

$class The element class

ORM\Column(type="string",

length=1024)
protected array $configuration
#

$configuration The element configuration

$configuration The element configuration

ORM\Column(type="array",

nullable=true)
protected Mapbender\CoreBundle\Entity\Application $application
#

The configuration entity for the application

The configuration entity for the application

ORM\ManyToOne(targetEntity="Application",

inversedBy="elements")
protected string $region
#

$region The template region for the element

$region The template region for the element

ORM\Column()

protected boolean $enabled true
#

ORM\Column(type="boolean",

nullable=true)
protected integer $weight
#

$weight The sorting weight for display

$weight The sorting weight for display

ORM\Column(type="integer")

Mapbender3 API documenation API documentation generated by ApiGen 2.8.0