Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.4

Request #9879 Worksheet::protect() shouldn't require a password.
Submitted: 2007-01-19 15:45 UTC
From: mikej at primatech dot com Assigned:
Status: Open Package: Spreadsheet_Excel_Writer (version 0.9.1)
PHP Version: 4.3.9 OS: Centos Linux 4.3
Roadmaps: (Not assigned)    
Subscription  


 [2007-01-19 15:45 UTC] mikej at primatech dot com (Mike Jones)
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.

Comments

 [2009-11-29 08:07 UTC] cschmitz (Carsten Schmitz)
-Status: Open +Status: Assigned -Assigned To: +Assigned To: cschmitz
 [2010-11-19 18:12 UTC] cschmitz (Carsten Schmitz)
-Status: Open +Status: Assigned