public function Excel_XML::setWorksheetTitle in Ubercart CSV 7.2
Same name and namespace in other branches
- 6.2 inc/excel-export.inc \Excel_XML::setWorksheetTitle()
Set worksheet title
Strips out not allowed characters and trims the title to a maximum length of 31.
Parameters
string $title Title for worksheet:
1 call to Excel_XML::setWorksheetTitle()
- Excel_XML::__construct in inc/
excel-export.inc - Constructor
File
- inc/
excel-export.inc, line 108
Class
- Excel_XML
- Generating excel documents on-the-fly from PHP5
Code
public function setWorksheetTitle($title) {
$title = preg_replace("/[\\\\|:|\\/|\\?|\\*|\\[|\\]]/", "", $title);
$title = substr($title, 0, 31);
$this->sWorksheetTitle = $title;
}