phpDocumentor openbiz.bin.service
[ class tree: openbiz.bin.service ] [ index: openbiz.bin.service ] [ all elements ]

Class: excelService

Source Location: /service/excelService.php

Class excelService

Class Overview

excelService - class excelService is the plug-in service of printing bizform to excel

Located in /service/excelService.php [line 30]



		
				Author(s):
		
  • Rocky Swen
API Tags:
Access:  public

Information Tags:
Copyright:  Copyright (c) 2005-2009, Rocky Swen

Methods

[ Top ]
Method Summary
void   __construct()   Initialize excelService with xml array metadata
array   getDataTable()   Get raw data to display in the spreadsheet. header and data table
void   importCSV()   import from CSV file NOTE: This method must be called from a popup form where a file is uploaded.
void   render()   Render excel data
void   renderCSV()   Render the excel output with CSV format
void   renderTSV()   Render the excel output with TSV format
void   ReportError()   Show error message

[ Top ]
Methods
Constructor __construct  [line 39]

  void __construct( array &$xmlArr  )

Initialize excelService with xml array metadata

Parameters:
array   $xmlArr: 


[ Top ]
getDataTable  [line 183]

  array getDataTable( string $objName  )

Get raw data to display in the spreadsheet. header and data table

Parameters:
string   $objName: 

API Tags:
Access:  protected


[ Top ]
importCSV  [line 78]

  void importCSV( string $objName  )

import from CSV file NOTE: This method must be called from a popup form where a file is uploaded.

The parent form of the popup form is the target to import.

Parameters:
string   $objName: 

API Tags:
Access:  public


[ Top ]
render  [line 154]

  void render( string $objName, [string $separator = ","], [string $ext = "csv"]  )

Render excel data

Parameters:
string   $objName:  object form name
string   $separator:  sparator between column
string   $ext:  file extension

API Tags:
Access:  protected


[ Top ]
renderCSV  [line 49]

  void renderCSV( string $objName  )

Render the excel output with CSV format

Parameters:
string   $objName:  object name which is the bizform name


[ Top ]
renderTSV  [line 63]

  void renderTSV( string $objName  )

Render the excel output with TSV format

Parameters:
string   $objName:  object name which is the bizform name


[ Top ]
ReportError  [line 214]

  void ReportError( number $error  )

Show error message

Parameters:
number   $error:  error number

API Tags:
Access:  protected


[ Top ]

Documentation generated on Tue, 22 Dec 2009 03:02:56 -0800 by phpDocumentor 1.3.0RC3