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

  • DataStore
  • DataStoreService
  • FeatureType
  • FeatureTypeService

Class DataStore

Class DataSource

Data source manager.

Symfony\Component\DependencyInjection\ContainerAware
Extended by Mapbender\DataSourceBundle\Component\DataStore

Direct known subclasses

Mapbender\DataSourceBundle\Component\FeatureType

Namespace: Mapbender\DataSourceBundle\Component
Package: Mapbender\DataSourceBundle
Author: Andriy Oblivantsev <eslider@gmail.com>
Located at data-source/Component/DataStore.php

Methods summary

public
# __construct( Symfony\Component\DependencyInjection\ContainerInterface $container, null $args = null )

Parameters

$container
$args
public mixed
# connect( mixed $url )

Parameters

$url

Returns

mixed
mixed
public Mapbender\DataSourceBundle\Entity\DataItem
# getById( mixed $id )

Parameters

$id

Returns

Mapbender\DataSourceBundle\Entity\DataItem
DataItem
public Mapbender\DataSourceBundle\Entity\DataItem|null
# getParent( mixed $id )

Get parent by child ID

Get parent by child ID

Parameters

$id

Returns

Mapbender\DataSourceBundle\Entity\DataItem|null
DataItem|null
public Mapbender\DataSourceBundle\Entity\DataItem[]
# getTree( null|integer $parentId = null, boolean $recursive = true )

Get tree

Get tree

Parameters

$parentId
Parent ID
$recursive
Recursive <a href="false">true</a>

Returns

Mapbender\DataSourceBundle\Entity\DataItem[]
DataItem[]
public Mapbender\DataSourceBundle\Entity\DataItem
# create( mixed $data )

Convert array to DataItem object

Convert array to DataItem object

Parameters

$data

Returns

Mapbender\DataSourceBundle\Entity\DataItem
DataItem
public Mapbender\DataSourceBundle\Entity\DataItem
# save( Mapbender\DataSourceBundle\Entity\DataItem|array $item, boolean $autoUpdate = true )

Save data item

Save data item

Parameters

$item
Data item
$autoUpdate
Create item if doesn't exists

Returns

Mapbender\DataSourceBundle\Entity\DataItem
DataItem

Throws

Exception
\Exception
public
# remove( mixed $args )

Remove data item

Remove data item

Inheritdoc

public Mapbender\DataSourceBundle\Entity\DataItem[]
# search( array $criteria = array() )

Search by criteria

Search by criteria

Parameters

$criteria

Returns

Mapbender\DataSourceBundle\Entity\DataItem[]
DataItem[]
public boolean
# isOracle( )

Is oralce platform

Is oralce platform

Returns

boolean
bool
public Mapbender\DataSourceBundle\Component\Drivers\Interfaces\Base|Mapbender\DataSourceBundle\Component\Drivers\BaseDriver|Mapbender\DataSourceBundle\Component\Drivers\DoctrineBaseDriver|Mapbender\DataSourceBundle\Component\Drivers\PostgreSQL
# getDriver( )

Get current driver instance

Get current driver instance

Returns

Mapbender\DataSourceBundle\Component\Drivers\Interfaces\Base|Mapbender\DataSourceBundle\Component\Drivers\BaseDriver|Mapbender\DataSourceBundle\Component\Drivers\DoctrineBaseDriver|Mapbender\DataSourceBundle\Component\Drivers\PostgreSQL
Base|BaseDriver|DoctrineBaseDriver|PostgreSQL
public boolean
# isSqlite( )

Is SQLite platform

Is SQLite platform

Returns

boolean
bool
public boolean
# isPostgres( )

Is postgres platform

Is postgres platform

Returns

boolean
bool
public array
# getTypes( )

Get driver types

Get driver types

Returns

array
array
public
# get( mixed $args )

Get by argument

Get by argument

Inheritdoc

public string
# getPlatformName( )

Get platform name

Get platform name

Returns

string
string
public Doctrine\DBAL\Connection
# getConnection( )

Get DBAL Connection

Get DBAL Connection

Returns

Doctrine\DBAL\Connection
Connection
public
# secureEval( mixed $code, array $args = array() )

Parameters

$code
$args

Throws

Exception
\Exception
public
# setParentField( mixed $parentField )

Parameters

$parentField
public mixed
# getParentField( )

Returns

mixed
mixed
public Mapbender\DataSourceBundle\Component\DataStore
# setMapping( mixed $mapping )

Parameters

$mapping

Returns

Mapbender\DataSourceBundle\Component\DataStore
DataStore
protected
# preventSave( string $msg = "" )

Prevent save item. For event handling only.

Prevent save item. For event handling only.

Parameters

$msg
Prevent save message
protected
# preventRemove( string $msg = "" )

Prevent remove item. For event handling only.

Prevent remove item. For event handling only.

Parameters

$msg
Prevent reason message
public Mapbender\DataSourceBundle\Entity\DataItem[]
# getTroughMapping( mixed $mappingId, mixed $id )

Get related objects through mapping

Get related objects through mapping

Parameters

$mappingId
$id

Returns

Mapbender\DataSourceBundle\Entity\DataItem[]
DataItem[]

Magic methods summary

Constants summary

string ORACLE_PLATFORM
#'oracle'
string POSTGRESQL_PLATFORM
#'postgresql'
string SQLITE_PLATFORM
#'sqlite'
string EVENT_ON_AFTER_SAVE

Eval events

Eval events

#'onAfterSave'
string EVENT_ON_BEFORE_SAVE
#'onBeforeSave'
string EVENT_ON_BEFORE_REMOVE
#'onBeforeRemove'
string EVENT_ON_AFTER_REMOVE
#'onAfterRemove'
string EVENT_ON_BEFORE_SEARCH
#'onBeforeSearch'
string EVENT_ON_AFTER_SEARCH
#'onAfterSearch'

Properties summary

protected Mapbender\DataSourceBundle\Component\Drivers\Interfaces\Base $driver

$driver

$driver

#
public mixed $events
#
protected mixed $allowSave
#
protected mixed $allowRemove
#
protected mixed $parentField
#
protected mixed $mapping
#
protected mixed $connectionName
#
protected mixed $connectionType
#
protected mixed $fields
#
Mapbender 3.0.6.0 API documenation API documentation generated by ApiGen 2.8.0