public function Excel_XML::__construct in Ubercart CSV 7.2
Same name and namespace in other branches
- 6.2 inc/excel-export.inc \Excel_XML::__construct()
Constructor
The constructor allows the setting of some additional parameters so that the library may be configured to one's needs.
On converting types: When set to true, the library tries to identify the type of the variable value and set the field specification for Excel accordingly. Be careful with article numbers or postcodes starting with a '0' (zero)!
Parameters
string $sEncoding Encoding to be used (defaults to UTF-8):
boolean $bConvertTypes Convert variables to field specification:
string $sWorksheetTitle Title for the worksheet:
File
- inc/
excel-export.inc, line 84
Class
- Excel_XML
- Generating excel documents on-the-fly from PHP5
Code
public function __construct($sEncoding = 'UTF-8', $bConvertTypes = false, $sWorksheetTitle = 'Table1') {
$this->bConvertTypes = $bConvertTypes;
$this
->setEncoding($sEncoding);
$this
->setWorksheetTitle($sWorksheetTitle);
}