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 Layerset

Layerset configuration entity

Namespace: Mapbender\CoreBundle\Entity
Author: Christian Wygoda
ORM\Entity
ORM\Table(name="mb_core_layerset",uniqueConstraints={@UniqueConstraint(name="layerset_idx",: columns={"application_id", "title"})})
UniqueEntity(fields={"application",: "title"}, message ="Duplicate entry for key 'title'.")
Located at Mapbender/CoreBundle/Entity/Layerset.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
# 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
# addInstance( Mapbender\CoreBundle\Entity\SourceInstance $instance )

Add SourceInstance

Add SourceInstance

Parameters

$instance
Mapbender\CoreBundle\Entity\SourceInstance
$instance
public Mapbender\CoreBundle\Entity\Layerset
# setInstances( Doctrine\Common\Collections\Collection $instances )

Set instances

Set instances

Parameters

$instances
Doctrine\Common\Collections\Collection
$instances Collection of the SourceInstances

Returns

Mapbender\CoreBundle\Entity\Layerset
public Doctrine\Common\Collections\Collection
# getInstances( )

Get instances

Get instances

Returns

Doctrine\Common\Collections\Collection
public
# __toString( )
Properties summary
protected integer $id
#

$id

$id

ORM\Column(type="integer")

ORM\GeneratedValue(strategy="AUTO")

ORM\Id

protected string $title
#

$title The layerset title

$title The layerset title

Assert\NotBlank()

ORM\Column(type="string",

length=128)
protected Mapbender\CoreBundle\Entity\Application $application
#

The configuration entity for the application

The configuration entity for the application

ORM\ManyToOne(targetEntity="Application",

inversedBy="layersets")
protected mixed $instances
#

ORM\JoinColumn(name="instances",

referencedColumnName="id")

ORM\OneToMany(targetEntity="SourceInstance",

mappedBy="layerset", cascade={"refresh","persist", "remove"})

ORM\OrderBy({"weight"

= "asc"})
Mapbender3 API documenation API documentation generated by ApiGen 2.8.0