PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File Formats » Spreadsheet_Excel_Writer » Bug #1464

Documentation setTempDir belongs to workbook

Details

Submitted2004-05-21 19:28 UTC
Fromuntil-june-04 at daniu dot de
Assignedxnoguer
StatusClosed
PackageSpreadsheet_Excel_Writer
PHP VersionIrrelevant
OSirrelevant
Roadmaps(Not assigned)

Comments

[2004-05-21 19:28 UTC] until-june-04 at daniu dot de

Description:
------------
The documentation has a mistake:
http://pear.php.net/manual/en/package.fileformats.spreadsheet-excel-writer.spreadsheet-excel-writer-workbook.settempdir.php

on top it says that setTempDir belongs to workbook but in the example it is used as method of worksheet.

$worksheet =& $workbook->addWorksheet('My first worksheet');
$worksheet->setTempDir('/home/xnoguer/temp');
$worksheet->write(0, 0, "did this work?");

probably it should be:
$workbook->setTempDir('/home/xnoguer/temp');
$worksheet =& $workbook->addWorksheet('My first worksheet');
$worksheet->write(0, 0, "did this work?");

[2004-06-22 23:56 UTC] xnoguer at php dot net

This bug has been fixed in CVS.nnIn case this was a documentation problem, the fix will show up at thenend of next Sunday (CET) on pear.php.net.nnIn case this was a pear.php.net website problem, the change will shownup on the website in short time.n nThank you for the report, and for helping us make PEAR better.