PHPExcel_Reader

# Class: PHPExcel_Reader_CSV Source Location: /PHPExcel/Reader/CSV.php
### Class Overview
PHPExcel_Reader_CSV #### Author(s): #### Copyright: Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) Implements interfaces: PHPExcel_Reader_IReader | ### Variables $_delimiter $_enclosure $_inputEncoding $_lineEnding $_readFilter $_sheetIndex | ### Methods __construct canRead getDelimiter getEnclosure getInputEncoding getLineEnding getReadFilter getSheetIndex load loadIntoExisting setDelimiter setEnclosure setInputEncoding setLineEnding setReadFilter setSheetIndex
### Class Details [line 60] PHPExcel_Reader_CSV PHPExcel_Reader_CSV #### Tags:
copyright: | Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
[ Top ] ### Class Variables #### $_delimiter = [line 74] Delimiter Delimiter #### Tags:
access: | private
Type: | string
[ Top ] #### $_enclosure = [line 81] Enclosure Enclosure #### Tags:
access: | private
Type: | string
[ Top ] #### $_inputEncoding = [line 67] Input encoding Input encoding #### Tags:
access: | private
Type: | string
[ Top ] #### $_lineEnding = [line 88] Line ending Line ending #### Tags:
access: | private
Type: | string
[ Top ] #### $_readFilter = null [line 102] PHPExcel_Reader_IReadFilter instance PHPExcel_Reader_IReadFilter instance #### Tags:
access: | private
Type: | PHPExcel_Reader_IReadFilter
[ Top ] #### $_sheetIndex = [line 95] Sheet index to read Sheet index to read #### Tags:
access: | private
Type: | int
[ Top ] ### Class Methods ### constructor __construct [line 107]
`PHPExcel_Reader_CSV __construct( )`
Create a new PHPExcel_Reader_CSV Create a new PHPExcel_Reader_CSV #### Tags:
access: | public
[ Top ] ### method canRead [line 122]
`boolean canRead( $pFilename, string $pFileName)`
Can the current PHPExcel_Reader_IReader read the file? Can the current PHPExcel_Reader_IReader read the file? #### Tags:
access: | public
Implementation of: PHPExcel_Reader_IReader::canRead() Can the current PHPExcel_Reader_IReader read the file? #### Parameters:
string | $pFileName |
| $pFilename |
[ Top ] ### method getDelimiter [line 260]
`string getDelimiter( )`
Get delimiter Get delimiter #### Tags:
access: | public
[ Top ] ### method getEnclosure [line 280]
`string getEnclosure( )`
Get enclosure Get enclosure #### Tags:
access: | public
[ Top ] ### method getInputEncoding [line 180]
`string getInputEncoding( )`
Get input encoding Get input encoding #### Tags:
access: | public
[ Top ] ### method getLineEnding [line 303]
`string getLineEnding( )`
Get line ending Get line ending #### Tags:
access: | public
[ Top ] ### method getReadFilter [line 152]
`PHPExcel_Reader_IReadFilter getReadFilter( )`
Read filter Read filter #### Tags:
access: | public
[ Top ] ### method getSheetIndex [line 323]
`int getSheetIndex( )`
Get sheet index Get sheet index #### Tags:
access: | public
[ Top ] ### method load [line 138]
`void load( string $pFilename)`
Loads PHPExcel from file Loads PHPExcel from file #### Tags:
throws: | Exception
access: | public
Implementation of: PHPExcel_Reader_IReader::load() Loads PHPExcel from file #### Parameters:
string | $pFilename |
[ Top ] ### method loadIntoExisting [line 192]
`void loadIntoExisting( string $pFilename, $objPHPExcel)`
Loads PHPExcel from file into PHPExcel instance Loads PHPExcel from file into PHPExcel instance #### Tags:
throws: | Exception
access: | public
#### Parameters:
string | $pFilename |
PHPExcel | $objPHPExcel |
[ Top ] ### method setDelimiter [line 270]
`PHPExcel_Reader_CSV setDelimiter( [string $pValue = ','])`
Set delimiter Set delimiter #### Tags:
access: | public
#### Parameters:
string | $pValue | Delimiter, defaults to ,
[ Top ] ### method setEnclosure [line 290]
`PHPExcel_Reader_CSV setEnclosure( [string $pValue = '"'])`
Set enclosure Set enclosure #### Tags:
access: | public
#### Parameters:
string | $pValue | Enclosure, defaults to "
[ Top ] ### method setInputEncoding [line 170]
`void setInputEncoding( [string $pValue = 'UTF-8'])`
Set input encoding Set input encoding #### Tags:
access: | public
#### Parameters:
string | $pValue | Input encoding
[ Top ] ### method setLineEnding [line 313]
`PHPExcel_Reader_CSV setLineEnding( [string $pValue = PHP_EOL])`
Set line ending Set line ending #### Tags:
access: | public
#### Parameters:
string | $pValue | Line ending, defaults to OS line ending (PHP_EOL)
[ Top ] ### method setReadFilter [line 161]
`void setReadFilter( PHPExcel_Reader_IReadFilter $pValue)`
Set read filter Set read filter #### Tags:
access: | public
#### Parameters:
PHPExcel_Reader_IReadFilter | $pValue |
[ Top ] ### method setSheetIndex [line 333]
`PHPExcel_Reader_CSV setSheetIndex( [int $pValue = 0])`
Set sheet index Set sheet index #### Tags:
access: | public
#### Parameters:
int | $pValue | Sheet index
[ Top ] Documentation generated on Mon, 11 Jan 2010 08:07:30 +0100 by phpDocumentor 1.4.1