PHPExcel

# Class: PHPExcel_IOFactory Source Location: /PHPExcel/IOFactory.php
### Class Overview
PHPExcel_IOFactory #### Author(s): #### Copyright: Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) | ### Variables $_autoResolveClasses $_searchLocations | ### Methods __construct addSearchLocation createReader createReaderForFile createWriter getSearchLocations load setSearchLocations
### Class Details [line 54] PHPExcel_IOFactory PHPExcel_IOFactory #### Tags:
copyright: | Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
[ Top ] ### Class Variables #### static $_autoResolveClasses = array( 'Excel2007', 'Excel5', 'Excel2003XML', 'OOCalc', 'SYLK', 'Serialized', 'CSV', ) [line 71] Autoresolve classes Autoresolve classes #### Tags:
access: | private
Type: | array
[ Top ] #### static $_searchLocations = array( array( 'type' => 'IWriter', 'path' => 'PHPExcel/Writer/{0}.php', 'class' => 'PHPExcel_Writer_{0}' ),array('type'=>'IReader','path'=>'PHPExcel/Reader/{0}.php','class'=>'PHPExcel_Reader_{0}')) [line 61] Search locations Search locations #### Tags:
access: | private
Type: | array
[ Top ] ### Class Methods ### static method addSearchLocation [line 116]
`static void addSearchLocation( [string $type = ''], [string $location = ''], [string $classname = ''])`
Add search location Add search location #### Tags:
access: | public
#### Parameters:
string | $type | Example: IWriter
string | $location | Example: PHPExcel/Writer/{0}.php
string | $classname | Example: PHPExcel_Writer_{0}
[ Top ] ### static method createReader [line 158]
`static PHPExcel_Reader_IReader createReader( [string $readerType = ''])`
Create PHPExcel_Reader_IReader Create PHPExcel_Reader_IReader #### Tags:
access: | public
#### Parameters:
string | $readerType | Example: Excel2007
[ Top ] ### static method createReaderForFile [line 200]
`static PHPExcel_Reader_IReader createReaderForFile( $pFilename, string $pFileName)`
Create PHPExcel_Reader_IReader for file using automatic PHPExcel_Reader_IReader resolution Create PHPExcel_Reader_IReader for file using automatic PHPExcel_Reader_IReader resolution #### Tags:
access: | public
#### Parameters:
string | $pFileName |
| $pFilename |
[ Top ] ### static method createWriter [line 127]
`static PHPExcel_Writer_IWriter createWriter( PHPExcel $phpExcel, [string $writerType = ''])`
Create PHPExcel_Writer_IWriter Create PHPExcel_Writer_IWriter #### Tags:
access: | public
#### Parameters:
PHPExcel | $phpExcel |
string | $writerType | Example: Excel2007
[ Top ] ### static method getSearchLocations [line 91]
`static array getSearchLocations( )`
Get search locations Get search locations #### Tags:
access: | public
[ Top ] ### static method load [line 189]
`static PHPExcel load( $pFilename, string $pFileName)`
Loads PHPExcel from file using automatic PHPExcel_Reader_IReader resolution Loads PHPExcel from file using automatic PHPExcel_Reader_IReader resolution #### Tags:
access: | public
#### Parameters:
string | $pFileName |
| $pFilename |
[ Top ] ### static method setSearchLocations [line 101]
`static void setSearchLocations( array $value)`
Set search locations Set search locations #### Tags:
throws: | Exception
access: | public
#### Parameters:
array | $value |
[ Top ] ### constructor __construct [line 84]
`PHPExcel_IOFactory __construct( )`
Private constructor for PHPExcel_IOFactory Private constructor for PHPExcel_IOFactory #### Tags:
access: | private
[ Top ] Documentation generated on Mon, 11 Jan 2010 08:11:33 +0100 by phpDocumentor 1.4.1