ILIAS
eassessment Revision 61809
|
Public Member Functions | |
__construct ($isSupervisor=false) | |
Create a new PHPExcel_Style_Protection. | |
bindParent ($parent) | |
Bind parent. | |
getIsSupervisor () | |
Is this a supervisor or a real style component? | |
getSharedComponent () | |
Get the shared style component for the currently active cell in currently active sheet. | |
getActiveSheet () | |
Get the currently active sheet. | |
getSelectedCells () | |
Get the currently active cell coordinate in currently active sheet. | |
getActiveCell () | |
Get the currently active cell coordinate in currently active sheet. | |
getStyleArray ($array) | |
Build style array from subcomponents. | |
applyFromArray ($pStyles=null) | |
Apply styles from array. | |
getLocked () | |
Get locked. | |
setLocked ($pValue=self::PROTECTION_INHERIT) | |
Set locked. | |
getHidden () | |
Get hidden. | |
setHidden ($pValue=self::PROTECTION_INHERIT) | |
Set hidden. | |
getHashCode () | |
Get hash code. | |
__clone () | |
Implement PHP __clone to create a deep clone, not just a shallow copy. |
Data Fields | |
const | PROTECTION_INHERIT = 'inherit' |
Protection styles. | |
const | PROTECTION_PROTECTED = 'protected' |
const | PROTECTION_UNPROTECTED = 'unprotected' |
Private Attributes | |
$_locked | |
$_hidden | |
$_parentPropertyName | |
$_isSupervisor | |
$_parent |
Definition at line 36 of file Protection.php.
PHPExcel_Style_Protection::__construct | ( | $isSupervisor = false | ) |
Create a new PHPExcel_Style_Protection.
Definition at line 81 of file Protection.php.
References PROTECTION_INHERIT.
PHPExcel_Style_Protection::__clone | ( | ) |
Implement PHP __clone to create a deep clone, not just a shallow copy.
Definition at line 271 of file Protection.php.
PHPExcel_Style_Protection::applyFromArray | ( | $pStyles = null | ) |
Apply styles from array.
$objPHPExcel->getActiveSheet()->getStyle('B2')->getLocked()->applyFromArray( array('locked' => true, 'hidden' => false) );
array | $pStyles | Array containing style information |
Exception |
Definition at line 178 of file Protection.php.
References getActiveSheet(), getSelectedCells(), getStyleArray(), setHidden(), and setLocked().
PHPExcel_Style_Protection::bindParent | ( | $parent | ) |
Bind parent.
Only used for supervisor
PHPExcel_Style | $parent |
Definition at line 97 of file Protection.php.
PHPExcel_Style_Protection::getActiveCell | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 151 of file Protection.php.
References getActiveSheet().
PHPExcel_Style_Protection::getActiveSheet | ( | ) |
Get the currently active sheet.
Only used for supervisor
Definition at line 129 of file Protection.php.
Referenced by applyFromArray(), getActiveCell(), getSelectedCells(), setHidden(), and setLocked().
PHPExcel_Style_Protection::getHashCode | ( | ) |
Get hash code.
Implements PHPExcel_IComparable.
Definition at line 257 of file Protection.php.
References getSharedComponent().
PHPExcel_Style_Protection::getHidden | ( | ) |
Get hidden.
Definition at line 229 of file Protection.php.
References $_hidden, and getSharedComponent().
PHPExcel_Style_Protection::getIsSupervisor | ( | ) |
Is this a supervisor or a real style component?
Definition at line 108 of file Protection.php.
References $_isSupervisor.
PHPExcel_Style_Protection::getLocked | ( | ) |
Get locked.
Definition at line 201 of file Protection.php.
References $_locked, and getSharedComponent().
PHPExcel_Style_Protection::getSelectedCells | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 140 of file Protection.php.
References getActiveSheet().
Referenced by applyFromArray(), setHidden(), and setLocked().
PHPExcel_Style_Protection::getSharedComponent | ( | ) |
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor
Definition at line 119 of file Protection.php.
Referenced by getHashCode(), getHidden(), and getLocked().
PHPExcel_Style_Protection::getStyleArray | ( | $array | ) |
Build style array from subcomponents.
array | $array |
Definition at line 162 of file Protection.php.
Referenced by applyFromArray(), setHidden(), and setLocked().
PHPExcel_Style_Protection::setHidden | ( | $pValue = self::PROTECTION_INHERIT | ) |
Set hidden.
string | $pValue |
Definition at line 242 of file Protection.php.
References getActiveSheet(), getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
PHPExcel_Style_Protection::setLocked | ( | $pValue = self::PROTECTION_INHERIT | ) |
Set locked.
string | $pValue |
Definition at line 214 of file Protection.php.
References getActiveSheet(), getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
|
private |
Definition at line 55 of file Protection.php.
Referenced by getHidden().
|
private |
Definition at line 69 of file Protection.php.
Referenced by getIsSupervisor().
|
private |
Definition at line 48 of file Protection.php.
Referenced by getLocked().
|
private |
Definition at line 76 of file Protection.php.
|
private |
Definition at line 62 of file Protection.php.
const PHPExcel_Style_Protection::PROTECTION_INHERIT = 'inherit' |
Protection styles.
Definition at line 39 of file Protection.php.
Referenced by __construct(), PHPExcel_Writer_Excel5_Xf\_mapHidden(), PHPExcel_Writer_Excel5_Xf\_mapLocked(), PHPExcel_Reader_Excel5\_readXf(), PHPExcel_Writer_Excel2007_Style\_writeCellStyleDxf(), and PHPExcel_Writer_Excel2007_Style\_writeCellStyleXf().
const PHPExcel_Style_Protection::PROTECTION_PROTECTED = 'protected' |
Definition at line 40 of file Protection.php.
Referenced by PHPExcel_Writer_Excel5_Xf\_mapHidden(), PHPExcel_Writer_Excel5_Xf\_mapLocked(), PHPExcel_Reader_Excel2007\_readStyle(), PHPExcel_Reader_Excel5\_readXf(), PHPExcel_Writer_Excel2007_Style\_writeCellStyleDxf(), and PHPExcel_Writer_Excel2007_Style\_writeCellStyleXf().
const PHPExcel_Style_Protection::PROTECTION_UNPROTECTED = 'unprotected' |
Definition at line 41 of file Protection.php.
Referenced by PHPExcel_Writer_Excel5_Xf\_mapHidden(), PHPExcel_Writer_Excel5_Xf\_mapLocked(), PHPExcel_Reader_Excel2007\_readStyle(), and PHPExcel_Reader_Excel5\_readXf().