Overview

Packages

  • JAMA
  • None
  • PHP
  • PHPExcel
    • CachedObjectStorage
    • Calculation
    • Cell
    • Chart
      • Renderer
    • Reader
      • Excel2007
      • Excel5
    • RichText
    • Settings
    • Shared
      • Escher
      • OLE
      • Trend
      • ZipArchive
    • Style
    • Worksheet
      • Drawing
    • Writer
      • 2007
      • CSV
      • Excel2007
      • Excel5
      • HTML
      • PDF

Classes

  • PHPExcel_Reader_Abstract
  • PHPExcel_Reader_CSV
  • PHPExcel_Reader_DefaultReadFilter
  • PHPExcel_Reader_Excel2003XML
  • PHPExcel_Reader_Excel2007
  • PHPExcel_Reader_Gnumeric
  • PHPExcel_Reader_HTML
  • PHPExcel_Reader_OOCalc
  • PHPExcel_Reader_SYLK

Interfaces

  • PHPExcel_Reader_IReader
  • PHPExcel_Reader_IReadFilter

Exceptions

  • PHPExcel_Reader_Exception
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Class PHPExcel_Reader_CSV

PHPExcel_Reader_CSV

PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader
Extended by PHPExcel_Reader_CSV implements PHPExcel_Reader_IReader
Package: PHPExcel\Reader
Category: PHPExcel
Copyright: Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
License: LGPL
Located at controlador/include/phpexcel/PHPExcel/Reader/CSV.php
Methods summary
public
# __construct( )

Create a new PHPExcel_Reader_CSV

Create a new PHPExcel_Reader_CSV

protected boolean
# _isValidFormat( )

Validate that the current file is a CSV file

Validate that the current file is a CSV file

Returns

boolean
public
# setInputEncoding( string $pValue = 'UTF-8' )

Set input encoding

Set input encoding

Parameters

$pValue
Input encoding
public string
# getInputEncoding( )

Get input encoding

Get input encoding

Returns

string
protected
# _skipBOM( )

Move filepointer past any BOM marker

Move filepointer past any BOM marker

public
# listWorksheetInfo( string $pFilename )

Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns)

Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns)

Parameters

$pFilename

Throws

PHPExcel_Reader_Exception
public PHPExcel
# load( string $pFilename )

Loads PHPExcel from file

Loads PHPExcel from file

Parameters

$pFilename

Returns

PHPExcel

Throws

PHPExcel_Reader_Exception

Implementation of

PHPExcel_Reader_IReader::load()
public PHPExcel
# loadIntoExisting( string $pFilename, PHPExcel $objPHPExcel )

Loads PHPExcel from file into PHPExcel instance

Loads PHPExcel from file into PHPExcel instance

Parameters

$pFilename
$objPHPExcel

Returns

PHPExcel

Throws

PHPExcel_Reader_Exception
public string
# getDelimiter( )

Get delimiter

Get delimiter

Returns

string
public PHPExcel_Reader_CSV
# setDelimiter( string $pValue = ',' )

Set delimiter

Set delimiter

Parameters

$pValue
Delimiter, defaults to ,

Returns

PHPExcel_Reader_CSV
public string
# getEnclosure( )

Get enclosure

Get enclosure

Returns

string
public PHPExcel_Reader_CSV
# setEnclosure( string $pValue = '"' )

Set enclosure

Set enclosure

Parameters

$pValue
Enclosure, defaults to "

Returns

PHPExcel_Reader_CSV
public string
# getLineEnding( )

Get line ending

Get line ending

Returns

string
public PHPExcel_Reader_CSV
# setLineEnding( string $pValue = PHP_EOL )

Set line ending

Set line ending

Parameters

$pValue
Line ending, defaults to OS line ending (PHP_EOL)

Returns

PHPExcel_Reader_CSV
public integer
# getSheetIndex( )

Get sheet index

Get sheet index

Returns

integer
public PHPExcel_Reader_CSV
# setSheetIndex( integer $pValue = 0 )

Set sheet index

Set sheet index

Parameters

$pValue
Sheet index

Returns

PHPExcel_Reader_CSV
public
# setContiguous( boolean $contiguous = FALSE )

Set Contiguous

Set Contiguous

Parameters

$contiguous
public boolean
# getContiguous( )

Get Contiguous

Get Contiguous

Returns

boolean
Methods inherited from PHPExcel_Reader_Abstract
_openFile(), canRead(), getIncludeCharts(), getLoadSheetsOnly(), getReadDataOnly(), getReadFilter(), setIncludeCharts(), setLoadAllSheets(), setLoadSheetsOnly(), setReadDataOnly(), setReadFilter()
Properties summary
private string $_inputEncoding

Input encoding

Input encoding

# 'UTF-8'
private string $_delimiter

Delimiter

Delimiter

# ','
private string $_enclosure

Enclosure

Enclosure

# '"'
private string $_lineEnding

Line ending

Line ending

# PHP_EOL
private integer $_sheetIndex

Sheet index to read

Sheet index to read

# 0
private integer $_contiguous

Load rows contiguously

Load rows contiguously

# false
private integer $_contiguousRow

Row counter for loading rows contiguously

Row counter for loading rows contiguously

# -1
Properties inherited from PHPExcel_Reader_Abstract
$_fileHandle, $_includeCharts, $_loadSheetsOnly, $_readDataOnly, $_readFilter
Autene API documentation generated by ApiGen