Properties

$lockRevision

$lockRevision : boolean

LockRevision.

Type

boolean

$lockStructure

$lockStructure : boolean

LockStructure.

Type

boolean

$lockWindows

$lockWindows : boolean

LockWindows.

Type

boolean

$revisionsPassword

$revisionsPassword : string

RevisionsPassword.

Type

string

$workbookPassword

$workbookPassword : string

WorkbookPassword.

Type

string

Methods

__construct()

__construct() 

Create a new Document Security instance.

isSecurityEnabled()

isSecurityEnabled() : boolean

Is some sort of document security enabled?

Returns

boolean

getLockRevision()

getLockRevision() : boolean

Get LockRevision.

Returns

boolean

getLockStructure()

getLockStructure() : boolean

Get LockStructure.

Returns

boolean

getLockWindows()

getLockWindows() : boolean

Get LockWindows.

Returns

boolean

getRevisionsPassword()

getRevisionsPassword() : string

Get RevisionsPassword (hashed).

Returns

string

setRevisionsPassword()

setRevisionsPassword(string  $pValue, boolean  $pAlreadyHashed = false) : \PhpOffice\PhpSpreadsheet\Document\Security

Set RevisionsPassword.

Parameters

string $pValue
boolean $pAlreadyHashed

If the password has already been hashed, set this to true

Returns

\PhpOffice\PhpSpreadsheet\Document\Security

getWorkbookPassword()

getWorkbookPassword() : string

Get WorkbookPassword (hashed).

Returns

string

setWorkbookPassword()

setWorkbookPassword(string  $pValue, boolean  $pAlreadyHashed = false) : \PhpOffice\PhpSpreadsheet\Document\Security

Set WorkbookPassword.

Parameters

string $pValue
boolean $pAlreadyHashed

If the password has already been hashed, set this to true

Returns

\PhpOffice\PhpSpreadsheet\Document\Security

__clone()

__clone() 

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