Structures_DataGrid_DataSource_Excel
[ class tree: Structures_DataGrid_DataSource_Excel ] [ index: Structures_DataGrid_DataSource_Excel ] [ all elements ]

Class: Structures_DataGrid_DataSource_Excel

Source Location: /Structures_DataGrid_DataSource_Excel-0.1.2/Structures/DataGrid/DataSource/Excel.php

Class Overview

Structures_DataGrid_DataSource_Array
   |
   --Structures_DataGrid_DataSource_Excel

Excel Spreadsheet Data Source Driver


Author(s):

Version:

  • $Revision$

Methods


Inherited Variables

Inherited Methods


Class Details

[line 85]
Excel Spreadsheet Data Source Driver

This class is a data source driver for an Excel spreadsheet.

SUPPORTED OPTIONS:

  • header: (bool) Whether the Excel file contains a header row
GENERAL NOTES:

Spreadsheet_Excel_Reader ("PHP-ExcelReader") is not available as a PEAR package. It is available on SourceForge.net: http://sourceforge.net/projects/phpexcelreader/

This class expects the file reader.php in the directory Spreadsheet/Excel/.

Please note that the current version (2i) of Spreadsheet_Excel_Reader contains a die() statement in the read() method in reader.php (line 171). This makes a reasonable PEAR error handling for the "file not found" error impossible.

It is therefore recommended that you replace the die() statement by something like this:

  1.  return PEAR::raiseError('The filename ' $sFileName ' is not readable');
This class is optimized for the changed code (but will work also with the die() in the reader class, of course), and provides then a reasonable error handling.



[ Top ]


Method Detail

Structures_DataGrid_DataSource_Excel (Constructor)   [line 88]

Structures_DataGrid_DataSource_Excel Structures_DataGrid_DataSource_Excel( )


[ Top ]

bind   [line 101]

mixed bind( mixed $filename, [ $options = array()])

Bind
  • Return: True on success, PEAR_Error on failure
  • Access: public

Parameters:

mixed   $filename   —  Path/filename to the Excel file
   $options   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:48:28 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.