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

  • Application
  • Contact
  • Element
  • ElementRepository
  • Keyword
  • Layerset
  • RegionProperties
  • Source
  • SourceInstance
  • SourceInstanceItem
  • SourceItem
  • SRS
  • State

Class Application

Application entity

Namespace: Mapbender\CoreBundle\Entity
Author: Christian Wygoda <christian.wygoda@wheregroup.com>
Author: Paul Schmidt <paul.schmidt@wheregroup.com>
Author: Andriy Oblivantsev <andriy.oblivantsev@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( )

Application constructor.

Application constructor.

public mixed
# setSource( integer $source )

Get entity source type

Get entity source type

Parameters

$source

Returns

mixed
$this
public string
# getSource( )

Get type

Get type

Returns

string
string
public Mapbender\CoreBundle\Entity\Application
# setId( mixed $id )

Set id

Set id

Parameters

$id

Returns

Mapbender\CoreBundle\Entity\Application
Application
public integer
# getId( )

Get id

Get id

Returns

integer
integer
public mixed
# setTitle( string $title )

Set title

Set title

Parameters

$title

Returns

mixed
$this
public string
# getTitle( )

Get title

Get title

Returns

string
string
public mixed
# setSlug( string $slug )

Set slug

Set slug

Parameters

$slug

Returns

mixed
$this
public string
# getSlug( )

Get slug

Get slug

Returns

string
string
public mixed
# setDescription( string $description )

Set description

Set description

Parameters

$description

Returns

mixed
$this
public string
# getDescription( )

Get description

Get description

Returns

string
string
public mixed
# setTemplate( string $template )

Set template

Set template

Parameters

$template

Returns

mixed
$this
public string
# getTemplate( )

Get template

Get template

Returns

string
string
public mixed
# setRegionProperties( Doctrine\Common\Collections\ArrayCollection $regionProperties )

Set region properties

Set region properties

Parameters

$regionProperties

Returns

mixed
$this
public Mapbender\CoreBundle\Entity\RegionProperties[]|Doctrine\Common\Collections\ArrayCollection
# getRegionProperties( )

Get region properties

Get region properties

Returns

Mapbender\CoreBundle\Entity\RegionProperties[]|Doctrine\Common\Collections\ArrayCollection
RegionProperties[]|ArrayCollection
public
# addRegionProperties( Mapbender\CoreBundle\Entity\RegionProperties $regionProperties )

Get region properties

Get region properties

Parameters

$regionProperties
public
# addElement( Mapbender\CoreBundle\Entity\Element $element )

Add element

Add element

Parameters

$element
public Mapbender\CoreBundle\Entity\Element[]
# getElements( )

Get elements

Get elements

Returns

Mapbender\CoreBundle\Entity\Element[]
Element[]
public mixed
# setElements( Doctrine\Common\Collections\ArrayCollection $elements )

Set elements

Set elements

Parameters

$elements
elements

Returns

mixed
$this
public
# addLayerset( Mapbender\CoreBundle\Entity\Layerset $layerset )

Add layersets

Add layersets

Parameters

$layerset
public Mapbender\CoreBundle\Entity\Application
# setLayersets( Doctrine\Common\Collections\ArrayCollection $layersets )

Set layersets

Set layersets

Parameters

$layersets
layersets

Returns

Mapbender\CoreBundle\Entity\Application
Application
public Mapbender\CoreBundle\Entity\Layerset[]|Doctrine\Common\Collections\ArrayCollection
# getLayersets( )

Get layersets

Get layersets

Returns

Mapbender\CoreBundle\Entity\Layerset[]|Doctrine\Common\Collections\ArrayCollection
Layerset[]|ArrayCollection
public mixed
# setScreenshot( string $screenshot )

Set screen shot

Set screen shot

Parameters

$screenshot

Returns

mixed
$this
public string
# getScreenshot( )

Get screenshot

Get screenshot

Returns

string
string
public mixed
# setScreenshotFile( mixed $screenshotFile )

Set screenshotFile

Set screenshotFile

Parameters

$screenshotFile

Returns

mixed
$this
public Symfony\Component\HttpFoundation\File\File
# getScreenshotFile( )

Get screenshotFile

Get screenshotFile

Returns

Symfony\Component\HttpFoundation\File\File
File
public mixed
# setExtraAssets( array $extra_assets = null )

Set extra assets

Set extra assets

Parameters

$extra_assets

Returns

mixed
$this
public array
# getExtraAssets( )

Get extra assets

Get extra assets

Returns

array
array
public mixed
# setPublished( boolean $published )

Set published

Set published

Parameters

$published

Returns

mixed
$this
public boolean
# isPublished( )

Is published?

Is published?

Returns

boolean
boolean
public mixed
# setUpdated( DateTime $updated )

Set updated

Set updated

Parameters

$updated

Returns

mixed
$this
public DateTime
# getUpdated( )

Get updated

Get updated

Returns

DateTime
\DateTime
public mixed
# setCustomCss( string $custom_css )

Set custom_css

Set custom_css

Parameters

$custom_css

Returns

mixed
$this
public string
# getCustomCss( )

Get custom_css

Get custom_css

Returns

string
string
public Mapbender\CoreBundle\Entity\Element[]|null
# getElementsByRegion( null $region = null )

Get region elements

Get region elements

Parameters

$region

Returns

Mapbender\CoreBundle\Entity\Element[]|null
Element[]|null
public string
# __toString( )

Get application ID

Get application ID

Returns

string
string
public array
# getNamedRegionProperties( )

Get region properties

Get region properties

Returns

array
array
public null
# getPropertiesFromRegion( mixed $regionName )

Get region properties

Get region properties

Parameters

$regionName

Returns

null
null
public mixed
# setExcludeFromList( mixed $exclude )

Hide application from menu list

Hide application from menu list

Parameters

$exclude

Returns

mixed
$this
public boolean
# isExcludedFromList( )

Returns

boolean
bool
public array
# getPublicOptions( )

Returns

array
array
public
# setPublicOptions( array $publicOptions )

Parameters

$publicOptions
public array
# getYamlRoles( )

Returns

array
array
public
# setYamlRoles( array $yamlRoles )

Parameters

$yamlRoles
public boolean
# isYamlBased( )

Is the application based on YAML configuration?

Is the application based on YAML configuration?

Returns

boolean
bool
public boolean
# isDbBased( )

Is the application based on Database configuration?

Is the application based on Database configuration?

Returns

boolean
bool

Magic methods summary

Constants summary

integer SOURCE_YAML

YAML based application type

YAML based application type

#1
integer SOURCE_DB

Databased application type

Databased application type

#2

Properties summary

protected boolean $excludeFromList

Exclude form application menu list

Exclude form application menu list

#false
protected array $yamlRoles

YAML roles

YAML roles

#
protected integer $source

$source Application source type (self::SOURCE_*)

$source Application source type (self::SOURCE_*)

#Mapbender\CoreBundle\Entity\Application::SOURCE_DB
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,

nullable=false)
#
protected Mapbender\CoreBundle\Entity\RegionProperties[]|Doctrine\Common\Collections\ArrayCollection $regionProperties

ORM\OneToMany(targetEntity="RegionProperties",

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

ORM\OrderBy({"id"

= "asc"})
#
protected Mapbender\CoreBundle\Entity\Element[]|Doctrine\Common\Collections\ArrayCollection $elements

ORM\OneToMany(targetEntity="Element",

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

ORM\OrderBy({"weight"

= "asc"})
#
protected Mapbender\CoreBundle\Entity\Layerset[]|Doctrine\Common\Collections\ArrayCollection $layersets

ORM\OneToMany(targetEntity="Layerset",

mappedBy="application", cascade={"remove"})
#
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 Symfony\Component\HttpFoundation\File\File $screenshotFile

Assert\File(maxSize="2097152")

#
protected mixed $updated

ORM\Column(type="datetime")

#
protected mixed $custom_css

ORM\Column(type="text",

nullable=true)

Scss

#
protected array $publicOptions

Public options array, this never stored in DB and only for YAML application.

Public options array, this never stored in DB and only for YAML application.

#array()
Mapbender 3.0.6.1 API documenation API documentation generated by ApiGen 2.8.0