Overview

Packages

  • Auth
    • Ads
    • Ldap
    • Xoops
  • Autotasks
  • Config
    • Category
    • Item
    • Option
  • Core
    • Filesystem
    • Filters
    • Logger
    • Mail
    • Message
    • Password
    • Security
    • StopSpammer
    • Template
    • Textsanitizer
    • VersionChecker
  • Data
    • Avatar
    • Comment
  • Database
    • Connection
    • Criteria
    • Legacy
    • MySQL
    • PDO
    • Updater
  • Feeds
    • RSS
  • File
  • Form
    • Base
    • Elements
  • ICMS
    • IPF
      • View
  • Image
    • Category
  • Ipf
    • Category
    • Controller
    • Export
    • form
    • Keyhighlighter
    • Member
    • Object
    • Permission
    • richfile
    • Tree
    • urllink
    • View
  • kernel
    • Set
  • Member
    • Group
    • GroupMembership
    • GroupPermission
    • User
  • Messaging
  • Module
  • None
  • Notification
  • Page
  • Plugins
    • Editor
  • Preload
    • Libraries
  • Privmessage
  • Session
  • SmartObject
  • View
    • Block
    • Breadcrumb
    • PageNav
    • PrinterFriendly
    • Template
    • Templates
    • Theme
    • Tree

Classes

  • icms_ipf_export_Handler
  • icms_ipf_export_Renderer
  • Overview
  • Package
  • Class

Class icms_ipf_export_Renderer

renders a set of data into a specific export format

Package: Ipf\Export
Category: ICMS
Author: marcan marcan@smartfactory.ca
Located at ipf/export/Renderer.php
Methods summary
public
# __construct( array $data, string $filename = false, string $filepath = false, string $format = 'csv', array $options = array('separator'=>';') )

Constructor

Constructor

Parameters

$data
contains the data to be exported
$filename
$format format of the ouputed export. Currently only supports CSV
$filepath
$filename name of the file in which the exported data will be saved
$format
$filepath path where the file will be saved
$options
options of the format to be exported in
public
# arrayToCsvString( arr $dataArray, str $separator, str $trim = 'both', boolean $removeEmptyLines = TRUE )

Converts an array to a comma-separated string

Converts an array to a comma-separated string

Parameters

$dataArray
$separator
$trim
$removeEmptyLines
public
# valToCsvHelper( str $val, str $separator, str $trimFunction )

Parameters

$val
$separator
$trimFunction
public
# execute( )
public
# saveExportFile( str $content )

Parameters

$content
public
# saveCsv( str $content )

Parameters

$content
Properties summary
public $data
#
public $format
#
public $filename
#
public $filepath
#
public $options
#
API documentation generated by ApiGen