public function Excel_XML::setWorksheetTitle in Views Excel Export 6
Same name and namespace in other branches
- 7 libs/php-excel.class.php \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 libs/
php-excel.class.php - Constructor
File
- libs/
php-excel.class.php, 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;
}