ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($isSupervisor=false) | |
Create a new PHPExcel_Style_Fill. | |
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. | |
getFillType () | |
Get Fill Type. | |
setFillType ($pValue=PHPExcel_Style_Fill::FILL_NONE) | |
Set Fill Type. | |
getRotation () | |
Get Rotation. | |
setRotation ($pValue=0) | |
Set Rotation. | |
getStartColor () | |
Get Start Color. | |
setStartColor (PHPExcel_Style_Color $pValue=null) | |
Set Start Color. | |
getEndColor () | |
Get End Color. | |
setEndColor (PHPExcel_Style_Color $pValue=null) | |
Set End Color. | |
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 | FILL_NONE = 'none' |
const | FILL_SOLID = 'solid' |
const | FILL_GRADIENT_LINEAR = 'linear' |
const | FILL_GRADIENT_PATH = 'path' |
const | FILL_PATTERN_DARKDOWN = 'darkDown' |
const | FILL_PATTERN_DARKGRAY = 'darkGray' |
const | FILL_PATTERN_DARKGRID = 'darkGrid' |
const | FILL_PATTERN_DARKHORIZONTAL = 'darkHorizontal' |
const | FILL_PATTERN_DARKTRELLIS = 'darkTrellis' |
const | FILL_PATTERN_DARKUP = 'darkUp' |
const | FILL_PATTERN_DARKVERTICAL = 'darkVertical' |
const | FILL_PATTERN_GRAY0625 = 'gray0625' |
const | FILL_PATTERN_GRAY125 = 'gray125' |
const | FILL_PATTERN_LIGHTDOWN = 'lightDown' |
const | FILL_PATTERN_LIGHTGRAY = 'lightGray' |
const | FILL_PATTERN_LIGHTGRID = 'lightGrid' |
const | FILL_PATTERN_LIGHTHORIZONTAL = 'lightHorizontal' |
const | FILL_PATTERN_LIGHTTRELLIS = 'lightTrellis' |
const | FILL_PATTERN_LIGHTUP = 'lightUp' |
const | FILL_PATTERN_LIGHTVERTICAL = 'lightVertical' |
const | FILL_PATTERN_MEDIUMGRAY = 'mediumGray' |
Private Attributes | |
$_fillType | |
$_rotation | |
$_startColor | |
$_endColor | |
$_parentPropertyName | |
$_isSupervisor | |
$_parent | |
$_hashIndex |
PHPExcel_Style_Fill::__construct | ( | $isSupervisor = false | ) |
Create a new PHPExcel_Style_Fill.
Definition at line 128 of file Fill.php.
References PHPExcel_Style_Color\COLOR_BLACK, PHPExcel_Style_Color\COLOR_WHITE, and FILL_NONE.
PHPExcel_Style_Fill::__clone | ( | ) |
PHPExcel_Style_Fill::applyFromArray | ( | $pStyles = null | ) |
Apply styles from array.
$objPHPExcel->getActiveSheet()->getStyle('B2')->getFill()->applyFromArray( array( 'type' => PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR, 'rotation' => 0, 'startcolor' => array( 'rgb' => '000000' ), 'endcolor' => array( 'argb' => 'FFFFFFFF' ) ) );
array | $pStyles | Array containing style information |
Exception |
Definition at line 244 of file Fill.php.
References getActiveSheet(), getEndColor(), getStartColor(), getStyleArray(), getXSelectedCells(), setFillType(), and setRotation().
PHPExcel_Style_Fill::bindParent | ( | $parent | ) |
Bind parent.
Only used for supervisor
PHPExcel_Style | $parent |
Definition at line 152 of file Fill.php.
PHPExcel_Style_Fill::getActiveSheet | ( | ) |
Get the currently active sheet.
Only used for supervisor
Definition at line 184 of file Fill.php.
Referenced by applyFromArray(), getXActiveCell(), getXSelectedCells(), setEndColor(), setFillType(), setRotation(), and setStartColor().
PHPExcel_Style_Fill::getEndColor | ( | ) |
Get End Color.
Definition at line 361 of file Fill.php.
References $_endColor.
Referenced by applyFromArray(), getHashCode(), and setEndColor().
PHPExcel_Style_Fill::getFillType | ( | ) |
Get Fill Type.
Definition at line 276 of file Fill.php.
References $_fillType, and getSharedComponent().
Referenced by PHPExcel_Writer_HTML\_createCSSStyleFill(), and getHashCode().
PHPExcel_Style_Fill::getHashCode | ( | ) |
Get hash code.
Implements PHPExcel_IComparable.
Definition at line 390 of file Fill.php.
References getEndColor(), getFillType(), getRotation(), getSharedComponent(), and getStartColor().
PHPExcel_Style_Fill::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 418 of file Fill.php.
References $_hashIndex.
PHPExcel_Style_Fill::getIsSupervisor | ( | ) |
Is this a supervisor or a real style component?
Definition at line 163 of file Fill.php.
References $_isSupervisor.
PHPExcel_Style_Fill::getRotation | ( | ) |
Get Rotation.
Definition at line 304 of file Fill.php.
References $_rotation, and getSharedComponent().
Referenced by getHashCode().
PHPExcel_Style_Fill::getSharedComponent | ( | ) |
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor
Definition at line 174 of file Fill.php.
Referenced by getFillType(), getHashCode(), and getRotation().
PHPExcel_Style_Fill::getStartColor | ( | ) |
Get Start Color.
Definition at line 332 of file Fill.php.
References $_startColor.
Referenced by PHPExcel_Writer_HTML\_createCSSStyleFill(), applyFromArray(), getHashCode(), and setStartColor().
PHPExcel_Style_Fill::getStyleArray | ( | $array | ) |
Build style array from subcomponents.
array | $array |
Definition at line 217 of file Fill.php.
Referenced by applyFromArray(), setFillType(), and setRotation().
PHPExcel_Style_Fill::getXActiveCell | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 206 of file Fill.php.
References getActiveSheet().
PHPExcel_Style_Fill::getXSelectedCells | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 195 of file Fill.php.
References getActiveSheet().
Referenced by applyFromArray(), setEndColor(), setFillType(), setRotation(), and setStartColor().
PHPExcel_Style_Fill::setEndColor | ( | PHPExcel_Style_Color | $pValue = null | ) |
Set End Color.
PHPExcel_Style_Color | $pValue |
Exception |
Definition at line 372 of file Fill.php.
References getActiveSheet(), getEndColor(), and getXSelectedCells().
PHPExcel_Style_Fill::setFillType | ( | $pValue = PHPExcel_Style_Fill::FILL_NONE | ) |
Set Fill Type.
string | $pValue | PHPExcel_Style_Fill fill type |
Definition at line 289 of file Fill.php.
References getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
PHPExcel_Style_Fill::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 430 of file Fill.php.
PHPExcel_Style_Fill::setRotation | ( | $pValue = 0 | ) |
Set Rotation.
double | $pValue |
Definition at line 317 of file Fill.php.
References getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
PHPExcel_Style_Fill::setStartColor | ( | PHPExcel_Style_Color | $pValue = null | ) |
Set Start Color.
PHPExcel_Style_Color | $pValue |
Exception |
Definition at line 343 of file Fill.php.
References getActiveSheet(), getStartColor(), and getXSelectedCells().
|
private |
Definition at line 102 of file Fill.php.
Referenced by getEndColor().
|
private |
Definition at line 81 of file Fill.php.
Referenced by getFillType().
|
private |
Definition at line 408 of file Fill.php.
Referenced by getHashIndex().
|
private |
Definition at line 116 of file Fill.php.
Referenced by getIsSupervisor().
|
private |
Definition at line 88 of file Fill.php.
Referenced by getRotation().
|
private |
Definition at line 95 of file Fill.php.
Referenced by getStartColor().
const PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR = 'linear' |
Definition at line 56 of file Fill.php.
Referenced by PHPExcel_Writer_Excel5_Xf\_mapFillType(), and PHPExcel_Writer_Excel2007_Style\_writeFill().
const PHPExcel_Style_Fill::FILL_GRADIENT_PATH = 'path' |
Definition at line 57 of file Fill.php.
Referenced by PHPExcel_Writer_Excel5_Xf\_mapFillType(), and PHPExcel_Writer_Excel2007_Style\_writeFill().
const PHPExcel_Style_Fill::FILL_NONE = 'none' |
Definition at line 54 of file Fill.php.
Referenced by __construct(), PHPExcel_Writer_HTML\_createCSSStyleFill(), PHPExcel_Reader_Excel5\_mapFillPattern(), PHPExcel_Writer_Excel5_Xf\_mapFillType(), and PHPExcel_Writer_Excel2007_Style\allFills().
const PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN = 'darkDown' |
Definition at line 58 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY = 'darkGray' |
Definition at line 59 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID = 'darkGrid' |
Definition at line 60 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL = 'darkHorizontal' |
Definition at line 61 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS = 'darkTrellis' |
Definition at line 62 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_PATTERN_DARKUP = 'darkUp' |
Definition at line 63 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL = 'darkVertical' |
Definition at line 64 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625 = 'gray0625' |
Definition at line 65 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_PATTERN_GRAY125 = 'gray125' |
Definition at line 66 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), PHPExcel_Writer_Excel5_Xf\_mapFillType(), and PHPExcel_Writer_Excel2007_Style\allFills().
const PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN = 'lightDown' |
Definition at line 67 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY = 'lightGray' |
Definition at line 68 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID = 'lightGrid' |
Definition at line 69 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL = 'lightHorizontal' |
Definition at line 70 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS = 'lightTrellis' |
Definition at line 71 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP = 'lightUp' |
Definition at line 72 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL = 'lightVertical' |
Definition at line 73 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY = 'mediumGray' |
Definition at line 74 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().
const PHPExcel_Style_Fill::FILL_SOLID = 'solid' |
Definition at line 55 of file Fill.php.
Referenced by PHPExcel_Reader_Excel5\_mapFillPattern(), and PHPExcel_Writer_Excel5_Xf\_mapFillType().