ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($isSupervisor=false) | |
Create a new PHPExcel_Style. | |
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. | |
getParent () | |
Get parent. | |
applyFromArray ($pStyles=null, $pAdvanced=true) | |
Apply styles from array. | |
getFill () | |
Get Fill. | |
getFont () | |
Get Font. | |
setFont (PHPExcel_Style_Font $font) | |
Set font. | |
getBorders () | |
Get Borders. | |
getAlignment () | |
Get Alignment. | |
getNumberFormat () | |
Get Number Format. | |
getConditionalStyles () | |
Get Conditional Styles. | |
setConditionalStyles ($pValue=null) | |
Set Conditional Styles. | |
getProtection () | |
Get Protection. | |
getHashCode () | |
Get hash code. | |
getHashIndex () | |
Get hash index. | |
setHashIndex ($value) | |
Set hash index. | |
getIndex () | |
Get own index in style collection. | |
setIndex ($pValue) | |
Set own index in style collection. | |
__clone () | |
Implement PHP __clone to create a deep clone, not just a shallow copy. |
Private Attributes | |
$_font | |
$_fill | |
$_borders | |
$_alignment | |
$_numberFormat | |
$_conditionalStyles | |
$_protection | |
$_isSupervisor | |
$_parent | |
$_index | |
$_hashIndex |
PHPExcel_Style::__construct | ( | $isSupervisor = false | ) |
Create a new PHPExcel_Style.
boolean | $isSupervisor |
Definition at line 148 of file Style.php.
PHPExcel_Style::__clone | ( | ) |
PHPExcel_Style::applyFromArray | ( | $pStyles = null , |
|
$pAdvanced = true |
|||
) |
Apply styles from array.
$objPHPExcel->getActiveSheet()->getStyle('B2')->applyFromArray( array( 'font' => array( 'name' => 'Arial', 'bold' => true, 'italic' => false, 'underline' => PHPExcel_Style_Font::UNDERLINE_DOUBLE, 'strike' => false, 'color' => array( 'rgb' => '808080' ) ), 'borders' => array( 'bottom' => array( 'style' => PHPExcel_Style_Border::BORDER_DASHDOT, 'color' => array( 'rgb' => '808080' ) ), 'top' => array( 'style' => PHPExcel_Style_Border::BORDER_DASHDOT, 'color' => array( 'rgb' => '808080' ) ) ) ) );
array | $pStyles | Array containing style information |
boolean | $pAdvanced | Advanced mode for setting borders. |
Exception |
Definition at line 298 of file Style.php.
References $row, $x, $y, PHPExcel_Cell\columnIndexFromString(), PHPExcel_Cell\coordinateFromString(), getActiveSheet(), getAlignment(), getBorders(), getFill(), getFont(), getNumberFormat(), getProtection(), getXSelectedCells(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Style::bindParent | ( | $parent | ) |
Bind parent.
Only used for supervisor
PHPExcel | $parent |
Definition at line 179 of file Style.php.
PHPExcel_Style::getActiveSheet | ( | ) |
Get the currently active sheet.
Only used for supervisor
Definition at line 222 of file Style.php.
Referenced by applyFromArray(), getConditionalStyles(), getSharedComponent(), and setConditionalStyles().
PHPExcel_Style::getAlignment | ( | ) |
Get Alignment.
Definition at line 569 of file Style.php.
References $_alignment.
Referenced by PHPExcel_Writer_HTML\_createCSSStyle(), applyFromArray(), and getHashCode().
PHPExcel_Style::getBorders | ( | ) |
Get Borders.
Definition at line 560 of file Style.php.
References $_borders.
Referenced by PHPExcel_Writer_HTML\_createCSSStyle(), applyFromArray(), and getHashCode().
PHPExcel_Style::getConditionalStyles | ( | ) |
Get Conditional Styles.
Only used on supervisor.
Definition at line 587 of file Style.php.
References getActiveSheet(), and getXActiveCell().
PHPExcel_Style::getFill | ( | ) |
Get Fill.
Definition at line 530 of file Style.php.
References $_fill.
Referenced by PHPExcel_Writer_HTML\_createCSSStyle(), applyFromArray(), and getHashCode().
PHPExcel_Style::getFont | ( | ) |
Get Font.
Definition at line 539 of file Style.php.
References $_font.
Referenced by PHPExcel_Writer_HTML\_createCSSStyle(), applyFromArray(), and getHashCode().
PHPExcel_Style::getHashCode | ( | ) |
Get hash code.
Implements PHPExcel_IComparable.
Definition at line 620 of file Style.php.
References getAlignment(), getBorders(), getFill(), getFont(), getNumberFormat(), and getProtection().
PHPExcel_Style::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 653 of file Style.php.
References $_hashIndex.
PHPExcel_Style::getIndex | ( | ) |
PHPExcel_Style::getIsSupervisor | ( | ) |
Is this a supervisor or a real style component?
Definition at line 190 of file Style.php.
References $_isSupervisor.
PHPExcel_Style::getNumberFormat | ( | ) |
Get Number Format.
Definition at line 578 of file Style.php.
References $_numberFormat.
Referenced by applyFromArray(), and getHashCode().
PHPExcel_Style::getParent | ( | ) |
PHPExcel_Style::getProtection | ( | ) |
Get Protection.
Definition at line 611 of file Style.php.
References $_protection.
Referenced by applyFromArray(), and getHashCode().
PHPExcel_Style::getSharedComponent | ( | ) |
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor
Definition at line 201 of file Style.php.
References getActiveSheet(), and getXActiveCell().
PHPExcel_Style::getXActiveCell | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 244 of file Style.php.
Referenced by getConditionalStyles(), and getSharedComponent().
PHPExcel_Style::getXSelectedCells | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 233 of file Style.php.
Referenced by applyFromArray(), and setConditionalStyles().
PHPExcel_Style::setConditionalStyles | ( | $pValue = null | ) |
Set Conditional Styles.
Only used on supervisor.
PHPExcel_Style_Conditional[] | $pValue Array of condtional styles |
Definition at line 597 of file Style.php.
References PHPExcel_Cell\extractAllCellReferencesInRange(), getActiveSheet(), and getXSelectedCells().
PHPExcel_Style::setFont | ( | PHPExcel_Style_Font | $font | ) |
Set font.
PHPExcel_Style_Font | $font |
Definition at line 549 of file Style.php.
PHPExcel_Style::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 665 of file Style.php.
PHPExcel_Style::setIndex | ( | $pValue | ) |
Set own index in style collection.
int | $pValue |
Definition at line 684 of file Style.php.
Referenced by PHPExcel\addCellStyleXf(), and PHPExcel\addCellXf().
|
private |
Definition at line 99 of file Style.php.
Referenced by getAlignment().
|
private |
Definition at line 92 of file Style.php.
Referenced by getBorders().
|
private |
Definition at line 643 of file Style.php.
Referenced by getHashIndex().
|
private |
Definition at line 141 of file Style.php.
Referenced by getIndex().
|
private |
Definition at line 127 of file Style.php.
Referenced by getIsSupervisor().
|
private |
Definition at line 106 of file Style.php.
Referenced by getNumberFormat().
|
private |
Definition at line 134 of file Style.php.
Referenced by getParent().
|
private |
Definition at line 120 of file Style.php.
Referenced by getProtection().