Subversion Repositories eFlore/Applications.cel

Rev

Rev 1621 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1621 Rev 3473
Line 93... Line 93...
93
	return ord($data[$pos]) | ord($data[$pos+1])<<8;
93
	return ord($data[$pos]) | ord($data[$pos+1])<<8;
94
}
94
}
Line 95... Line 95...
95
 
95
 
96
class OLERead {
96
class OLERead {
97
	var $data = '';
97
	var $data = '';
Line 98... Line 98...
98
	function OLERead(){	}
98
	function __construct(){	}
99
 
99
 
100
	function read($sFileName){
100
	function read($sFileName){
101
		// check if file exist and is readable (Darko Miljanovic)
101
		// check if file exist and is readable (Darko Miljanovic)
Line 911... Line 911...
911
	/**
911
	/**
912
	 * Constructor
912
	 * Constructor
913
	 *
913
	 *
914
	 * Some basic initialisation
914
	 * Some basic initialisation
915
	 */
915
	 */
916
	function Spreadsheet_Excel_Reader($file='',$store_extended_info=true,$outputEncoding='') {
916
	function __construct($file='',$store_extended_info=true,$outputEncoding='') {
917
		$this->_ole = new OLERead();
917
		$this->_ole = new OLERead();
918
		$this->setUTFEncoder('iconv');
918
		$this->setUTFEncoder('iconv');
919
		if ($outputEncoding != '') { 
919
		if ($outputEncoding != '') { 
920
			$this->setOutputEncoding($outputEncoding);
920
			$this->setOutputEncoding($outputEncoding);
921
		}
921
		}