ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($isSupervisor=false) | |
Create a new PHPExcel_Style_Borders. | |
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. | |
getLeft () | |
Get Left. | |
getRight () | |
Get Right. | |
getTop () | |
Get Top. | |
getBottom () | |
Get Bottom. | |
getDiagonal () | |
Get Diagonal. | |
getAllBorders () | |
Get AllBorders (pseudo-border). | |
getOutline () | |
Get Outline (pseudo-border). | |
getInside () | |
Get Inside (pseudo-border). | |
getVertical () | |
Get Vertical (pseudo-border). | |
getHorizontal () | |
Get Horizontal (pseudo-border). | |
getDiagonalDirection () | |
Get DiagonalDirection. | |
setDiagonalDirection ($pValue=PHPExcel_Style_Borders::DIAGONAL_NONE) | |
Set DiagonalDirection. | |
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 | DIAGONAL_NONE = 0 |
const | DIAGONAL_UP = 1 |
const | DIAGONAL_DOWN = 2 |
Private Attributes | |
$_left | |
$_right | |
$_top | |
$_bottom | |
$_diagonal | |
$_diagonalDirection | |
$_allBorders | |
$_outline | |
$_inside | |
$_vertical | |
$_horizontal | |
$_parentPropertyName | |
$_isSupervisor | |
$_parent | |
$_hashIndex |
Definition at line 51 of file Borders.php.
PHPExcel_Style_Borders::__construct | ( | $isSupervisor = false | ) |
Create a new PHPExcel_Style_Borders.
Definition at line 159 of file Borders.php.
References DIAGONAL_NONE.
PHPExcel_Style_Borders::__clone | ( | ) |
PHPExcel_Style_Borders::applyFromArray | ( | $pStyles = null | ) |
Apply styles from array.
$objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray( 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' ) ) ) );
$objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray( array( 'allborders' => array( 'style' => PHPExcel_Style_Border::BORDER_DASHDOT, 'color' => array( 'rgb' => '808080' ) ) ) );
array | $pStyles | Array containing style information |
Exception |
Definition at line 309 of file Borders.php.
References getActiveSheet(), getBottom(), getDiagonal(), getLeft(), getRight(), getStyleArray(), getTop(), getXSelectedCells(), and setDiagonalDirection().
PHPExcel_Style_Borders::bindParent | ( | $parent | ) |
Bind parent.
Only used for supervisor
PHPExcel_Style | $parent |
Definition at line 201 of file Borders.php.
PHPExcel_Style_Borders::getActiveSheet | ( | ) |
Get the currently active sheet.
Only used for supervisor
Definition at line 233 of file Borders.php.
Referenced by applyFromArray(), getXActiveCell(), getXSelectedCells(), and setDiagonalDirection().
PHPExcel_Style_Borders::getAllBorders | ( | ) |
Get AllBorders (pseudo-border).
Only applies to supervisor.
Exception |
Definition at line 390 of file Borders.php.
References $_allBorders.
PHPExcel_Style_Borders::getBottom | ( | ) |
Get Bottom.
Definition at line 371 of file Borders.php.
References $_bottom.
Referenced by PHPExcel_Writer_HTML\_createCSSStyleBorders(), applyFromArray(), and getHashCode().
PHPExcel_Style_Borders::getDiagonal | ( | ) |
Get Diagonal.
Definition at line 380 of file Borders.php.
References $_diagonal.
Referenced by applyFromArray(), and getHashCode().
PHPExcel_Style_Borders::getDiagonalDirection | ( | ) |
Get DiagonalDirection.
Definition at line 454 of file Borders.php.
References $_diagonalDirection, and getSharedComponent().
Referenced by getHashCode().
PHPExcel_Style_Borders::getHashCode | ( | ) |
Get hash code.
Implements PHPExcel_IComparable.
Definition at line 485 of file Borders.php.
References getBottom(), getDiagonal(), getDiagonalDirection(), getLeft(), getRight(), getSharedComponent(), and getTop().
PHPExcel_Style_Borders::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 515 of file Borders.php.
References $_hashIndex.
PHPExcel_Style_Borders::getHorizontal | ( | ) |
Get Horizontal (pseudo-border).
Only applies to supervisor.
Exception |
Definition at line 442 of file Borders.php.
References $_horizontal.
PHPExcel_Style_Borders::getInside | ( | ) |
Get Inside (pseudo-border).
Only applies to supervisor.
Exception |
Definition at line 416 of file Borders.php.
References $_inside.
PHPExcel_Style_Borders::getIsSupervisor | ( | ) |
Is this a supervisor or a real style component?
Definition at line 212 of file Borders.php.
References $_isSupervisor.
PHPExcel_Style_Borders::getLeft | ( | ) |
Get Left.
Definition at line 344 of file Borders.php.
References $_left.
Referenced by PHPExcel_Writer_HTML\_createCSSStyleBorders(), applyFromArray(), and getHashCode().
PHPExcel_Style_Borders::getOutline | ( | ) |
Get Outline (pseudo-border).
Only applies to supervisor.
Exception |
Definition at line 403 of file Borders.php.
References $_outline.
PHPExcel_Style_Borders::getRight | ( | ) |
Get Right.
Definition at line 353 of file Borders.php.
References $_right.
Referenced by PHPExcel_Writer_HTML\_createCSSStyleBorders(), applyFromArray(), and getHashCode().
PHPExcel_Style_Borders::getSharedComponent | ( | ) |
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor
Definition at line 223 of file Borders.php.
Referenced by getDiagonalDirection(), and getHashCode().
PHPExcel_Style_Borders::getStyleArray | ( | $array | ) |
Build style array from subcomponents.
array | $array |
Definition at line 266 of file Borders.php.
Referenced by applyFromArray(), and setDiagonalDirection().
PHPExcel_Style_Borders::getTop | ( | ) |
Get Top.
Definition at line 362 of file Borders.php.
References $_top.
Referenced by PHPExcel_Writer_HTML\_createCSSStyleBorders(), applyFromArray(), and getHashCode().
PHPExcel_Style_Borders::getVertical | ( | ) |
Get Vertical (pseudo-border).
Only applies to supervisor.
Exception |
Definition at line 429 of file Borders.php.
References $_vertical.
PHPExcel_Style_Borders::getXActiveCell | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 255 of file Borders.php.
References getActiveSheet().
PHPExcel_Style_Borders::getXSelectedCells | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 244 of file Borders.php.
References getActiveSheet().
Referenced by applyFromArray(), and setDiagonalDirection().
PHPExcel_Style_Borders::setDiagonalDirection | ( | $pValue = PHPExcel_Style_Borders::DIAGONAL_NONE | ) |
Set DiagonalDirection.
int | $pValue |
Definition at line 467 of file Borders.php.
References DIAGONAL_NONE, getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
PHPExcel_Style_Borders::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 527 of file Borders.php.
|
private |
Definition at line 105 of file Borders.php.
Referenced by getAllBorders().
|
private |
Definition at line 84 of file Borders.php.
Referenced by getBottom().
|
private |
Definition at line 91 of file Borders.php.
Referenced by getDiagonal().
|
private |
Definition at line 98 of file Borders.php.
Referenced by getDiagonalDirection().
|
private |
Definition at line 505 of file Borders.php.
Referenced by getHashIndex().
|
private |
Definition at line 133 of file Borders.php.
Referenced by getHorizontal().
|
private |
Definition at line 119 of file Borders.php.
Referenced by getInside().
|
private |
Definition at line 147 of file Borders.php.
Referenced by getIsSupervisor().
|
private |
Definition at line 63 of file Borders.php.
Referenced by getLeft().
|
private |
Definition at line 112 of file Borders.php.
Referenced by getOutline().
|
private |
Definition at line 154 of file Borders.php.
|
private |
Definition at line 140 of file Borders.php.
|
private |
Definition at line 70 of file Borders.php.
Referenced by getRight().
|
private |
Definition at line 77 of file Borders.php.
Referenced by getTop().
|
private |
Definition at line 126 of file Borders.php.
Referenced by getVertical().
const PHPExcel_Style_Borders::DIAGONAL_DOWN = 2 |
Definition at line 56 of file Borders.php.
Referenced by PHPExcel_Reader_Excel2007\_readStyle(), and PHPExcel_Writer_Excel2007_Style\_writeBorder().
const PHPExcel_Style_Borders::DIAGONAL_NONE = 0 |
Definition at line 54 of file Borders.php.
Referenced by __construct(), and setDiagonalDirection().
const PHPExcel_Style_Borders::DIAGONAL_UP = 1 |
Definition at line 55 of file Borders.php.
Referenced by PHPExcel_Reader_Excel2007\_readStyle(), and PHPExcel_Writer_Excel2007_Style\_writeBorder().