\PhpOffice\PhpWord\SimpleTypeDocProtect

Document Protection Types

Summary

Methods
Properties
Constants
values()
isValid()
validate()
No public properties found
NONE
READ_ONLY
COMMENTS
TRACKED_CHANGES
FORMS
No protected methods found
No protected properties found
N/A
getConstants()
$constCacheArray
N/A

Constants

NONE

NONE = 'none'

No Editing Restrictions

READ_ONLY

READ_ONLY = 'readOnly'

Allow No Editing

COMMENTS

COMMENTS = 'comments'

Allow Editing of Comments

TRACKED_CHANGES

TRACKED_CHANGES = 'trackedChanges'

Allow Editing With Revision Tracking

FORMS

FORMS = 'forms'

Allow Editing of Form Fields

Properties

$constCacheArray

$constCacheArray : 

Type

Methods

values()

values() : array

Returns all values for this enum

Returns

array

isValid()

isValid(string  $value) : boolean

Returns true the value is valid for this enum

Parameters

string $value

Returns

boolean —

true if value is valid

validate()

validate(string  $value) 

Validates that the value passed is a valid value

Parameters

string $value

Throws

\InvalidArgumentException

if the value passed is not valid for this enum

getConstants()

getConstants()