ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
PHPExcel_DocumentSecurity Class Reference
+ Collaboration diagram for PHPExcel_DocumentSecurity:

Public Member Functions

 __construct ()
 Create a new PHPExcel_DocumentSecurity. More...
 
 isSecurityEnabled ()
 Is some sort of dcument security enabled? More...
 
 getLockRevision ()
 Get LockRevision. More...
 
 setLockRevision ($pValue=false)
 Set LockRevision. More...
 
 getLockStructure ()
 Get LockStructure. More...
 
 setLockStructure ($pValue=false)
 Set LockStructure. More...
 
 getLockWindows ()
 Get LockWindows. More...
 
 setLockWindows ($pValue=false)
 Set LockWindows. More...
 
 getRevisionsPassword ()
 Get RevisionsPassword (hashed) More...
 
 setRevisionsPassword ($pValue='', $pAlreadyHashed=false)
 Set RevisionsPassword. More...
 
 getWorkbookPassword ()
 Get WorkbookPassword (hashed) More...
 
 setWorkbookPassword ($pValue='', $pAlreadyHashed=false)
 Set WorkbookPassword. More...
 
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy. More...
 

Private Attributes

 $_lockRevision
 
 $_lockStructure
 
 $_lockWindows
 
 $_revisionsPassword
 
 $_workbookPassword
 

Detailed Description

Definition at line 36 of file DocumentSecurity.php.

Constructor & Destructor Documentation

◆ __construct()

PHPExcel_DocumentSecurity::__construct ( )

Create a new PHPExcel_DocumentSecurity.

Definition at line 76 of file DocumentSecurity.php.

77  {
78  // Initialise values
79  $this->_lockRevision = false;
80  $this->_lockStructure = false;
81  $this->_lockWindows = false;
82  $this->_revisionsPassword = '';
83  $this->_workbookPassword = '';
84  }

Member Function Documentation

◆ __clone()

PHPExcel_DocumentSecurity::__clone ( )

Implement PHP __clone to create a deep clone, not just a shallow copy.

Definition at line 208 of file DocumentSecurity.php.

References $key.

208  {
209  $vars = get_object_vars($this);
210  foreach ($vars as $key => $value) {
211  if (is_object($value)) {
212  $this->$key = clone $value;
213  } else {
214  $this->$key = $value;
215  }
216  }
217  }
$key
Definition: croninfo.php:18

◆ getLockRevision()

PHPExcel_DocumentSecurity::getLockRevision ( )

Get LockRevision.

Returns
boolean

Definition at line 102 of file DocumentSecurity.php.

References $_lockRevision.

102  {
103  return $this->_lockRevision;
104  }

◆ getLockStructure()

PHPExcel_DocumentSecurity::getLockStructure ( )

Get LockStructure.

Returns
boolean

Definition at line 122 of file DocumentSecurity.php.

References $_lockStructure.

122  {
123  return $this->_lockStructure;
124  }

◆ getLockWindows()

PHPExcel_DocumentSecurity::getLockWindows ( )

Get LockWindows.

Returns
boolean

Definition at line 142 of file DocumentSecurity.php.

References $_lockWindows.

142  {
143  return $this->_lockWindows;
144  }

◆ getRevisionsPassword()

PHPExcel_DocumentSecurity::getRevisionsPassword ( )

Get RevisionsPassword (hashed)

Returns
string

Definition at line 162 of file DocumentSecurity.php.

References $_revisionsPassword.

162  {
164  }

◆ getWorkbookPassword()

PHPExcel_DocumentSecurity::getWorkbookPassword ( )

Get WorkbookPassword (hashed)

Returns
string

Definition at line 186 of file DocumentSecurity.php.

References $_workbookPassword.

186  {
188  }

◆ isSecurityEnabled()

PHPExcel_DocumentSecurity::isSecurityEnabled ( )

Is some sort of dcument security enabled?

Returns
boolean

Definition at line 91 of file DocumentSecurity.php.

References $_lockWindows.

91  {
92  return $this->_lockRevision ||
93  $this->_lockStructure ||
95  }

◆ setLockRevision()

PHPExcel_DocumentSecurity::setLockRevision (   $pValue = false)

Set LockRevision.

Parameters
boolean$pValue
Returns
PHPExcel_DocumentSecurity

Definition at line 112 of file DocumentSecurity.php.

112  {
113  $this->_lockRevision = $pValue;
114  return $this;
115  }

◆ setLockStructure()

PHPExcel_DocumentSecurity::setLockStructure (   $pValue = false)

Set LockStructure.

Parameters
boolean$pValue
Returns
PHPExcel_DocumentSecurity

Definition at line 132 of file DocumentSecurity.php.

132  {
133  $this->_lockStructure = $pValue;
134  return $this;
135  }

◆ setLockWindows()

PHPExcel_DocumentSecurity::setLockWindows (   $pValue = false)

Set LockWindows.

Parameters
boolean$pValue
Returns
PHPExcel_DocumentSecurity

Definition at line 152 of file DocumentSecurity.php.

152  {
153  $this->_lockWindows = $pValue;
154  return $this;
155  }

◆ setRevisionsPassword()

PHPExcel_DocumentSecurity::setRevisionsPassword (   $pValue = '',
  $pAlreadyHashed = false 
)

Set RevisionsPassword.

Parameters
string$pValue
boolean$pAlreadyHashedIf the password has already been hashed, set this to true
Returns
PHPExcel_DocumentSecurity

Definition at line 173 of file DocumentSecurity.php.

References PHPExcel_Shared_PasswordHasher\hashPassword().

173  {
174  if (!$pAlreadyHashed) {
176  }
177  $this->_revisionsPassword = $pValue;
178  return $this;
179  }
static hashPassword($pPassword='')
Create a password hash from a given string.
+ Here is the call graph for this function:

◆ setWorkbookPassword()

PHPExcel_DocumentSecurity::setWorkbookPassword (   $pValue = '',
  $pAlreadyHashed = false 
)

Set WorkbookPassword.

Parameters
string$pValue
boolean$pAlreadyHashedIf the password has already been hashed, set this to true
Returns
PHPExcel_DocumentSecurity

Definition at line 197 of file DocumentSecurity.php.

References PHPExcel_Shared_PasswordHasher\hashPassword().

197  {
198  if (!$pAlreadyHashed) {
200  }
201  $this->_workbookPassword = $pValue;
202  return $this;
203  }
static hashPassword($pPassword='')
Create a password hash from a given string.
+ Here is the call graph for this function:

Field Documentation

◆ $_lockRevision

PHPExcel_DocumentSecurity::$_lockRevision
private

Definition at line 43 of file DocumentSecurity.php.

Referenced by getLockRevision().

◆ $_lockStructure

PHPExcel_DocumentSecurity::$_lockStructure
private

Definition at line 50 of file DocumentSecurity.php.

Referenced by getLockStructure().

◆ $_lockWindows

PHPExcel_DocumentSecurity::$_lockWindows
private

Definition at line 57 of file DocumentSecurity.php.

Referenced by getLockWindows(), and isSecurityEnabled().

◆ $_revisionsPassword

PHPExcel_DocumentSecurity::$_revisionsPassword
private

Definition at line 64 of file DocumentSecurity.php.

Referenced by getRevisionsPassword().

◆ $_workbookPassword

PHPExcel_DocumentSecurity::$_workbookPassword
private

Definition at line 71 of file DocumentSecurity.php.

Referenced by getWorkbookPassword().


The documentation for this class was generated from the following file: