FAQ
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
Roadmap Versions:
New Comment:

-Status: Open
+Status: Assigned



Previous Comments:
------------------------------------------------------------------------

[2009-11-29 03:07:10] cschmitz

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


------------------------------------------------------------------------

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

Description:
------------
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 @
categoriesphp
postedNov 19, '10 at 12:11p
activeNov 19, '10 at 12:11p
posts1
users1
websitepear.php.net

1 user in discussion

Carsten Schmitz Hh: 1 post

People

Translate

site design / logo © 2022 Grokbase