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

  • BaseDriver
  • DoctrineBaseDriver
  • Oracle
  • PostgreSQL
  • SQLite
  • YAML

Class DoctrineBaseDriver

Class DoctrineBaseDriver

Symfony\Component\DependencyInjection\ContainerAware
Extended by Mapbender\DataSourceBundle\Component\Drivers\BaseDriver
Extended by Mapbender\DataSourceBundle\Component\Drivers\DoctrineBaseDriver implements Mapbender\DataSourceBundle\Component\Drivers\Interfaces\Base

Direct known subclasses

Mapbender\DataSourceBundle\Component\Drivers\Oracle, Mapbender\DataSourceBundle\Component\Drivers\PostgreSQL, Mapbender\DataSourceBundle\Component\Drivers\SQLite

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

Methods summary

public mixed
# connect( mixed $name = "default" )

Open connection by name$settings

Open connection by name$settings

Parameters

$name

Returns

mixed
$this

Implementation of

Mapbender\DataSourceBundle\Component\Drivers\Interfaces\Base::connect()
public Mapbender\DataSourceBundle\Entity\DataItem
# get( mixed $args )

Get by ID, array or object

Get by ID, array or object

Parameters

$args

Returns

Mapbender\DataSourceBundle\Entity\DataItem
DataItem

Implementation of

Mapbender\DataSourceBundle\Component\Drivers\Interfaces\Base::get()
public mixed
# save( mixed $data, boolean $autoUpdate = true )

Save the data

Save the data

Parameters

$data
$autoUpdate
update instead of insert if ID given

Returns

mixed
mixed

Throws

Exception
\Exception

Implementation of

Mapbender\DataSourceBundle\Component\Drivers\Interfaces\Base::save()
public boolean
# isReady( )

Is the driver connected an ready to interact?

Is the driver connected an ready to interact?

Returns

boolean
bool

Implementation of

Mapbender\DataSourceBundle\Component\Drivers\Interfaces\Base::isReady()
public boolean
# canRead( )

Has permission to read?

Has permission to read?

Returns

boolean
bool

Implementation of

Mapbender\DataSourceBundle\Component\Drivers\Interfaces\Base::canRead()
public boolean
# canWrite( )

Has permission to write?

Has permission to write?

Returns

boolean
bool

Implementation of

Mapbender\DataSourceBundle\Component\Drivers\Interfaces\Base::canWrite()
public mixed
# fetchColumn( string $statement, array $params = array(), integer $columnNum = 0 )

Prepares and executes an SQL query and returns the value of a single column of the first row of the result.

Prepares and executes an SQL query and returns the value of a single column of the first row of the result.

Parameters

$statement
The SQL query to be executed.
$params
The prepared statement params.
$columnNum
The 0-indexed column number to retrieve.

Returns

mixed
mixed
public array
# fetchList( mixed $statement )

Executes statement and fetch list as array

Executes statement and fetch list as array

Parameters

$statement

Returns

array
array
public
# getVersion( )

Get version

Get version

public mixed
# setTable( mixed $name )

Set table name

Set table name

Parameters

$name

Returns

mixed
$this
public array
# getStoreFields( )

Get table fields

Get table fields

Info: $schemaManager->listTableColumns($this->tableName) doesn't work if fields are geometries!

Returns

array
field names

Throws

Doctrine\DBAL\DBALException
\Doctrine\DBAL\DBALException

Overrides

Mapbender\DataSourceBundle\Component\Drivers\BaseDriver::getStoreFields
public string
# getPlatformName( )

Get platform name

Get platform name

Returns

string
string

Implementation of

Mapbender\DataSourceBundle\Component\Drivers\Interfaces\Base::getPlatformName()
public Doctrine\DBAL\Query\QueryBuilder
# getSelectQueryBuilder( array $fields = array() )

Get query builder prepared to select from the source table

Get query builder prepared to select from the source table

Parameters

$fields

Returns

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

Search by criteria

Search by criteria

Parameters

$criteria

Returns

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

Implementation of

Mapbender\DataSourceBundle\Component\Drivers\Interfaces\Base::search()
public Mapbender\DataSourceBundle\Entity\DataItem[]
# prepareResults( array & $rows )

Convert results to DataItem objects

Convert results to DataItem objects

Parameters

$rows
- Data items to be casted

Returns

Mapbender\DataSourceBundle\Entity\DataItem[]
DataItem[]
public
# setFilter( mixed $sqlFilter )

Set permanent SQL filter used by $this->search() https://trac.wheregroup.com/cp/issues/3733

Set permanent SQL filter used by $this->search() https://trac.wheregroup.com/cp/issues/3733

Parameters

$sqlFilter

See

$this->search()
public string
# getTableName( )

Returns

string
string
public mixed
# getById( mixed $id )

Get data item by id

Get data item by id

Parameters

$id

Returns

mixed
mixed

Implementation of

Mapbender\DataSourceBundle\Component\Drivers\Interfaces\Base::getById()
public Mapbender\DataSourceBundle\Entity\DataItem
# insert( array|Mapbender\DataSourceBundle\Entity\DataItem $item, boolean $cleanData = true )

Insert data item

Insert data item

Parameters

$item
$cleanData

Returns

Mapbender\DataSourceBundle\Entity\DataItem
DataItem
protected array
# cleanData( array $data )

Clean data this can't be saved into db table from data array

Clean data this can't be saved into db table from data array

Parameters

$data

Returns

array
array
public Mapbender\DataSourceBundle\Entity\DataItem
# update( array|Mapbender\DataSourceBundle\Entity\DataItem $dataItem )

Update data

Update data

Parameters

$dataItem

Returns

Mapbender\DataSourceBundle\Entity\DataItem
DataItem

Throws

Exception
\Exception
public boolean
# remove( Mapbender\DataSourceBundle\Entity\DataItem|array|integer $arg )

Remove data item

Remove data item

Parameters

$arg

Returns

boolean
bool

Implementation of

Mapbender\DataSourceBundle\Component\Drivers\Interfaces\Base::remove()
public Mapbender\DataSourceBundle\Entity\DataItem[]
# getByCriteria( mixed $criteria, mixed $fieldName )

List objects by criteria

List objects by criteria

Parameters

$criteria
$fieldName

Returns

Mapbender\DataSourceBundle\Entity\DataItem[]
\Mapbender\DataSourceBundle\Entity\DataItem[]
public integer
# getLastInsertId( )

Get last insert ID

Get last insert ID

Returns

integer
int

Overrides

Mapbender\DataSourceBundle\Component\Drivers\BaseDriver::getLastInsertId
protected array
# extractTypeValues( array $data, array $types )

Extract ordered type list from two associate key lists of data and types.

Extract ordered type list from two associate key lists of data and types.

Parameters

$data
$types

Returns

array
array

Methods inherited from Mapbender\DataSourceBundle\Component\Drivers\BaseDriver

__construct(), create(), getConnection(), getFields(), getUniqueId(), getWktType(), roundGeometry(), setFields(), setUniqueId()

Magic methods summary

Constants summary

integer MAX_RESULTS
#100

Properties summary

public Doctrine\DBAL\Connection $connection
#
protected string $tableName

Table name

Table name

#
protected string $sqlFilter

SQL where filter

SQL where filter

#

Properties inherited from Mapbender\DataSourceBundle\Component\Drivers\BaseDriver

$fields, $settings, $uniqueId

Mapbender 3.0.6.3 API documenation API documentation generated by ApiGen 2.8.0