Edit report at http://pear.php.net/bugs/bug.php?id=9879&edit=1

ID: 9879
Updated by: carsten.schmitz.hh@gmail.com
Reported By: mikej at primatech dot com
Summary: Worksheet::protect() shouldn't require a password.
-Status: Open
+Status: Assigned
Type: Feature/Change Request
Package: Spreadsheet_Excel_Writer
Operating System: Centos Linux 4.3
Package Version: 0.9.1
PHP Version: 4.3.9
-Assigned To:
+Assigned To: cschmitz
Roadmap Versions:
New Comment:

-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: cschmitz

Previous Comments:

[2007-01-19 10:45:58] mikej at primatech dot com

I want to protect a worksheet to prevent accidental formula overwrites,
but I don't really want to password protect it. If I use
Worksheet::protect(), I'm forced to give a password. It would be nice
if the password was optional.

Here is a replacement function:

function protect($password = NULL)
$this->_protect = 1;
if ($password != NULL)
$this->_password = $this->_encodePassword($password);

I have worked around the problem for now by just setting the private
member Worksheet::_protected to 1, but this is obviously not ideal.


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
postedNov 29, '09 at 2:07a
activeNov 29, '09 at 2:07a

1 user in discussion

Carsten Schmitz Hh: 1 post



site design / logo © 2022 Grokbase