Overview

Namespaces

  • Mapbender
    • Component
      • HTTP
    • CoreBundle
      • Command
      • Component
        • Exception
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
      • Element
        • Type
      • Entity
      • EventListener
      • Extension
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
      • Template
    • DrupalIntegrationBundle
      • DependencyInjection
      • Security
        • Authentication
          • Provider
          • Token
        • Authorization
          • Voter
        • Factory
        • Firewall
        • User
      • Session
    • 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
        • EventListener
        • Type
    • WmsBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Element
        • Type
      • Entity
      • Event
      • Form
        • EventListener
        • Type
    • WmtsBundle
      • Component
        • Exception
      • Controller
      • Entity
      • Form
        • Type
  • None
  • PHP

Classes

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

Class Application

Applicaton entity

Namespace: Mapbender\CoreBundle\Entity
Author: Christian Wygoda <christian.wygoda@wheregroup.com>
ORM\Entity
ORM\HasLifecycleCallbacks
ORM\Table(name="mb_core_application")
UniqueEntity("slug")
UniqueEntity("title")
Located at Mapbender/CoreBundle/Entity/Application.php
Methods summary
public
# __construct( )
public
# setSource( integer $source )

Get entity source type

Get entity source type

Parameters

$source
integer
$source
public type
# getSource( )

Get type

Get type

Returns

type
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
# setSlug( string $slug )

Set slug

Set slug

Parameters

$slug
string
$slug
public string
# getSlug( )

Get slug

Get slug

Returns

string
public
# setDescription( text $description )

Set description

Set description

Parameters

$description
text
$description
public text
# getDescription( )

Get description

Get description

Returns

text
public
# setTemplate( string $template )

Set template

Set template

Parameters

$template
string
$template
public string
# getTemplate( )

Get template

Get template

Returns

string
public
# addElements( Mapbender\CoreBundle\Entity\Element $elements )

Add elements

Add elements

Parameters

$elements
Mapbender\CoreBundle\Entity\Element
$elements
public Doctrine\Common\Collections\Collection
# getElements( )

Get elements

Get elements

Returns

Doctrine\Common\Collections\Collection
public
# addLayerset( Mapbender\CoreBundle\Entity\Layerset $layerset )

Add layersets

Add layersets

Parameters

$layerset
Mapbender\CoreBundle\Entity\Layerset
$layerset
public Doctrine\Common\Collections\Collection
# getLayersets( )

Get layersets

Get layersets

Returns

Doctrine\Common\Collections\Collection
public
# setScreenshot( string $screenshot )

Set screenshot

Set screenshot

Parameters

$screenshot
string
$screenshot
public string
# getScreenshot( )

Get screenshot

Get screenshot

Returns

string
public
# setOwner( User $owner )

Set owner

Set owner

Parameters

$owner
User
$owner
public User
# getOwner( )

Get owner

Get owner

Returns

User
public
# setExtraAssets( array $extra_assets )

Set extra assets

Set extra assets

Parameters

$extra_assets
array
$extra_assets
public array
# getExtraAssets( )

Get extra assets

Get extra assets

Returns

array
public
# setPublished( boolean $published )

Set published

Set published

Parameters

$published
boolean
$published
public boolean
# isPublished( )

Is published?

Is published?

Returns

boolean
public
# setUpdated( DateTime $updated )

Set updated

Set updated

Parameters

$updated
DateTime
$updated
public DateTime
# getUpdated( )

Get updated

Get updated

Returns

DateTime
public
# getElementsByRegion( mixed $region = null )
public
# __toString( )
Constants summary
integer SOURCE_YAML 1
#
integer SOURCE_DB 2
#
Properties summary
protected integer $source
#

$source

$source

protected mixed $id
#

ORM\Column(type="integer")

ORM\GeneratedValue

ORM\Id

protected mixed $title
#

Assert\NotBlank()

ORM\Column(type="string",

length=128, unique=true)
protected mixed $slug
#

Assert\NotBlank()

Assert\Regex(

pattern="/^[0-9\-\_a-zA-Z]+$/", message="The slug value is wrong." )

ORM\Column(type="string",

length=255, unique=true)
protected mixed $description
#

ORM\Column(type="text",

nullable=true)
protected mixed $template
#

ORM\Column(length=1024)

protected mixed $elements
#

ORM\OneToMany(targetEntity="Element",

mappedBy="application", cascade={"persist", "remove"})

ORM\OrderBy({"weight"

= "asc"})
protected mixed $layersets
#

ORM\OneToMany(targetEntity="Layerset",

mappedBy="application", cascade={"persist", "remove"})
protected mixed $owner
#

ORM\ManyToOne(targetEntity="FOM\UserBundle\Entity\User",

cascade={"persist"})
protected mixed $published
#

ORM\Column(type="boolean")

protected mixed $screenshot
#

ORM\Column(type="string",

length=256, nullable=true)
protected mixed $extra_assets
#

ORM\Column(type="array",

nullable=true)
protected mixed $screenshotFile
#

Assert\File(maxSize="102400")

protected mixed $updated
#

ORM\Column(type="datetime")

Mapbender3 API documenation API documentation generated by ApiGen 2.8.0