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

  • CsvResponse
  • ExportResponse
  • GeoConverterComponent
  • PathHelper

Class ExportResponse

Class CsvResponse

Symfony\Component\HttpFoundation\Response
Extended by FOM\CoreBundle\Component\ExportResponse
Namespace: FOM\CoreBundle\Component
Package: FOM\CoreBundle\Component
Copyright: 2014 by WhereGroup GmbH & Co. KG
Author: Andriy Oblivantsev <eslider@gmail.com>
Located at FOM/CoreBundle/Component/ExportResponse.php

Methods summary

public
# __construct( array $data = NULL, string $fileName = 'export', string $type = FOM\CoreBundle\Component\ExportResponse::TYPE_CSV, string $encodingFrom = 'UTF-8', string $enclosure = '"', string $delimiter = ',', boolean $enableDownload = true )

Export Response

Export Response

Parameters

$data
Data list
$fileName
Name of file
$type
$encodingFrom
Encode from charset
$enclosure
Enclosure
$delimiter
Delimiter
$enableDownload
Enable download
public
# enableDownload( )

Enable download

Enable download

public
# disableDownload( )

Disable download

Disable download

public
# setXls( array & $data )

Generate Excel data sheet

Generate Excel data sheet

Parameters

$data
public
# setCsv( array & $data, boolean $detectHead = true )

Generate CSV list

Generate CSV list

Parameters

$data
$detectHead
public mixed
# setData( mixed & $output )

Parameters

$output

Returns

mixed
$this
public
# setType( string $type )

Set export type

Set export type

Parameters

$type
public mixed
# setEnclosure( string $enclosure )

Set enclosure

Set enclosure

Parameters

$enclosure

Returns

mixed
$this
public mixed
# setDelimiter( string $delimiter )

Set delimiter

Set delimiter

Parameters

$delimiter

Returns

mixed
$this
public mixed
# setEncodingFrom( string $encodingFrom )

Set encoding from charset

Set encoding from charset

Parameters

$encodingFrom

Returns

mixed
$this
public mixed
# setFileName( string $fileName )

Set export file name

Set export file name

Parameters

$fileName

Returns

mixed
$this
public static null|resource|string
# genXLS( array & $data, null| $handle = null, boolean $detectHead = true )

Here's the shortest and the fastest way to generate Excel file. It supports string and numeric fields. I hope this function can avoid you using huge Excel PHP classes which are too complicated and slow (and require reading a lot of documentation) for such a basic task.

Here's the shortest and the fastest way to generate Excel file. It supports string and numeric fields. I hope this function can avoid you using huge Excel PHP classes which are too complicated and slow (and require reading a lot of documentation) for such a basic task.

Parameters

$data
list of key/value array
$handle
$handle
$detectHead
detect and write a head

Returns

null|resource|string
if resource not given returns a string
public static resource
# createMemoryHandle( )

Returns

resource
resource

Magic methods summary

Constants summary

string UTF_16_LE

Unicode charset

Unicode charset

#'UTF-16LE'
string TYPE_XLS

Excel export type

Excel export type

#'xls'
string TYPE_CSV

CSV export type

CSV export type

#'csv'
integer XLS_INT_TYPE

Excel int type

Excel int type

#0x203
integer XLS_STRING_TYPE

Excel string type

Excel string type

#0x204
Mapbender 3.0.6.1 API documenation API documentation generated by ApiGen 2.8.0