You are here

public function Excel_XML::__construct in Views Excel Export 7

Same name and namespace in other branches
  1. 6 libs/php-excel.class.php \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

libs/php-excel.class.php, 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);
}