ILIAS
eassessment Revision 61809
|
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. | |
getSelectedCells () | |
Get the currently active cell coordinate in currently active sheet. | |
getActiveCell () | |
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. | |
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 |
PHPExcel_Style::__construct | ( | $isSupervisor = false | ) |
Create a new PHPExcel_Style.
boolean | $isSupervisor |
Definition at line 113 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 261 of file Style.php.
References $row, $x, $y, PHPExcel_Cell\columnIndexFromString(), PHPExcel_Cell\coordinateFromString(), getActiveSheet(), getAlignment(), getBorders(), getFill(), getFont(), getNumberFormat(), getProtection(), getSelectedCells(), and PHPExcel_Cell\stringFromColumnIndex().
PHPExcel_Style::bindParent | ( | $parent | ) |
Bind parent.
Only used for supervisor
PHPExcel | $parent |
Definition at line 144 of file Style.php.
PHPExcel_Style::getActiveCell | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 207 of file Style.php.
Referenced by getConditionalStyles(), and getSharedComponent().
PHPExcel_Style::getActiveSheet | ( | ) |
Get the currently active sheet.
Only used for supervisor
Definition at line 185 of file Style.php.
Referenced by applyFromArray(), getConditionalStyles(), getSharedComponent(), and setConditionalStyles().
PHPExcel_Style::getAlignment | ( | ) |
Get Alignment.
Definition at line 579 of file Style.php.
References $_alignment.
Referenced by PHPExcel_Writer_HTML\_createCSSStyle(), and applyFromArray().
PHPExcel_Style::getBorders | ( | ) |
Get Borders.
Definition at line 570 of file Style.php.
References $_borders.
Referenced by PHPExcel_Writer_HTML\_createCSSStyle(), and applyFromArray().
PHPExcel_Style::getConditionalStyles | ( | ) |
Get Conditional Styles.
Only used on supervisor.
Definition at line 597 of file Style.php.
References getActiveCell(), and getActiveSheet().
PHPExcel_Style::getFill | ( | ) |
Get Fill.
Definition at line 540 of file Style.php.
References $_fill.
Referenced by PHPExcel_Writer_HTML\_createCSSStyle(), and applyFromArray().
PHPExcel_Style::getFont | ( | ) |
Get Font.
Definition at line 549 of file Style.php.
References $_font.
Referenced by PHPExcel_Writer_HTML\_createCSSStyle(), applyFromArray(), and PHPExcel_Worksheet\setDefaultStyle().
PHPExcel_Style::getHashCode | ( | ) |
Get hash code.
Implements PHPExcel_IComparable.
Definition at line 628 of file Style.php.
PHPExcel_Style::getIndex | ( | ) |
PHPExcel_Style::getIsSupervisor | ( | ) |
Is this a supervisor or a real style component?
Definition at line 155 of file Style.php.
References $_isSupervisor.
PHPExcel_Style::getNumberFormat | ( | ) |
Get Number Format.
Definition at line 588 of file Style.php.
References $_numberFormat.
Referenced by applyFromArray().
PHPExcel_Style::getParent | ( | ) |
PHPExcel_Style::getProtection | ( | ) |
Get Protection.
Definition at line 619 of file Style.php.
References $_protection.
Referenced by applyFromArray().
PHPExcel_Style::getSelectedCells | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 196 of file Style.php.
Referenced by applyFromArray(), and setConditionalStyles().
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 166 of file Style.php.
References getActiveCell(), and getActiveSheet().
PHPExcel_Style::setConditionalStyles | ( | $pValue = null | ) |
Set Conditional Styles.
Only used on supervisor.
PHPExcel_Style_Conditional[] | $pValue Array of condtional styles |
Definition at line 607 of file Style.php.
References getActiveSheet(), and getSelectedCells().
PHPExcel_Style::setFont | ( | PHPExcel_Style_Font | $font | ) |
Set font.
PHPExcel_Style_Font | $font |
Definition at line 559 of file Style.php.
PHPExcel_Style::setIndex | ( | $pValue | ) |
Set own index in style collection.
int | $pValue |
Definition at line 661 of file Style.php.
Referenced by PHPExcel\addCellStyleXf(), and PHPExcel\addCellXf().
|
private |
Definition at line 64 of file Style.php.
Referenced by getAlignment().
|
private |
Definition at line 57 of file Style.php.
Referenced by getBorders().
|
private |
Definition at line 106 of file Style.php.
Referenced by getIndex().
|
private |
Definition at line 92 of file Style.php.
Referenced by getIsSupervisor().
|
private |
Definition at line 71 of file Style.php.
Referenced by getNumberFormat().
|
private |
Definition at line 99 of file Style.php.
Referenced by getParent().
|
private |
Definition at line 85 of file Style.php.
Referenced by getProtection().