ILIAS
Release_4_0_x_branch Revision 61816
|
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. | |
getXSelectedCells () | |
Get the currently active cell coordinate in currently active sheet. | |
getXActiveCell () | |
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. | |
getHashIndex () | |
Get hash index. | |
setHashIndex ($value) | |
Set hash index. | |
__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 | |
$_hashIndex |
Definition at line 48 of file Protection.php.
PHPExcel_Style_Protection::__construct | ( | $isSupervisor = false | ) |
Create a new PHPExcel_Style_Protection.
Definition at line 93 of file Protection.php.
References PROTECTION_INHERIT.
PHPExcel_Style_Protection::__clone | ( | ) |
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 190 of file Protection.php.
References getActiveSheet(), getStyleArray(), getXSelectedCells(), setHidden(), and setLocked().
PHPExcel_Style_Protection::bindParent | ( | $parent | ) |
Bind parent.
Only used for supervisor
PHPExcel_Style | $parent |
Definition at line 109 of file Protection.php.
PHPExcel_Style_Protection::getActiveSheet | ( | ) |
Get the currently active sheet.
Only used for supervisor
Definition at line 141 of file Protection.php.
Referenced by applyFromArray(), getXActiveCell(), getXSelectedCells(), setHidden(), and setLocked().
PHPExcel_Style_Protection::getHashCode | ( | ) |
Get hash code.
Implements PHPExcel_IComparable.
Definition at line 269 of file Protection.php.
References getSharedComponent().
PHPExcel_Style_Protection::getHashIndex | ( | ) |
Get hash index.
Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
Implements PHPExcel_IComparable.
Definition at line 295 of file Protection.php.
References $_hashIndex.
PHPExcel_Style_Protection::getHidden | ( | ) |
Get hidden.
Definition at line 241 of file Protection.php.
References $_hidden, and getSharedComponent().
PHPExcel_Style_Protection::getIsSupervisor | ( | ) |
Is this a supervisor or a real style component?
Definition at line 120 of file Protection.php.
References $_isSupervisor.
PHPExcel_Style_Protection::getLocked | ( | ) |
Get locked.
Definition at line 213 of file Protection.php.
References $_locked, and getSharedComponent().
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 131 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 174 of file Protection.php.
Referenced by applyFromArray(), setHidden(), and setLocked().
PHPExcel_Style_Protection::getXActiveCell | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 163 of file Protection.php.
References getActiveSheet().
PHPExcel_Style_Protection::getXSelectedCells | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 152 of file Protection.php.
References getActiveSheet().
Referenced by applyFromArray(), setHidden(), and setLocked().
PHPExcel_Style_Protection::setHashIndex | ( | $value | ) |
Set hash index.
Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
string | $value | Hash index |
Implements PHPExcel_IComparable.
Definition at line 307 of file Protection.php.
PHPExcel_Style_Protection::setHidden | ( | $pValue = self::PROTECTION_INHERIT | ) |
Set hidden.
string | $pValue |
Definition at line 254 of file Protection.php.
References getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
PHPExcel_Style_Protection::setLocked | ( | $pValue = self::PROTECTION_INHERIT | ) |
Set locked.
string | $pValue |
Definition at line 226 of file Protection.php.
References getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
|
private |
Definition at line 285 of file Protection.php.
Referenced by getHashIndex().
|
private |
Definition at line 67 of file Protection.php.
Referenced by getHidden().
|
private |
Definition at line 81 of file Protection.php.
Referenced by getIsSupervisor().
|
private |
Definition at line 60 of file Protection.php.
Referenced by getLocked().
|
private |
Definition at line 88 of file Protection.php.
|
private |
Definition at line 74 of file Protection.php.
const PHPExcel_Style_Protection::PROTECTION_INHERIT = 'inherit' |
Protection styles.
Definition at line 51 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 52 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 53 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().