PROTECTION_INHERIT
PROTECTION_INHERIT = 'inherit'
Protection styles
PHPExcel_Style_Protection
$_isSupervisor : bool
Supervisor?
$_parent : \PHPExcel_Style
Parent. Only used for supervisor
$_locked : string
Locked
$_hidden : string
Hidden
__construct(bool $isSupervisor = FALSE, bool $isConditional = FALSE) : mixed
Create a new PHPExcel_Style_Protection
bool | $isSupervisor | Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are |
bool | $isConditional | Flag indicating if this is a conditional style or not Leave this value at default unless you understand exactly what its ramifications are |
applyFromArray(array $pStyles = NULL) : \PHPExcel_Style_Protection
Apply styles from array
$objPHPExcel->getActiveSheet()->getStyle('B2')->getLocked()->applyFromArray(
array(
'locked' => TRUE,
'hidden' => FALSE
)
);
array | $pStyles | Array containing style information |