PHPExcel_Style
[ class tree: PHPExcel_Style ] [ index: PHPExcel_Style ] [ all elements ]

Class: PHPExcel_Style_Border

Source Location: /PHPExcel/Style/Border.php

Class Overview


PHPExcel_Style_Border


Author(s):

Copyright:

  • Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)

Implements interfaces:

Variables

Constants

Methods



Class Details

[line 43]
PHPExcel_Style_Border

PHPExcel_Style_Border




Tags:

copyright:  Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)


[ Top ]


Class Variables

$_borderColor =

[line 73]

Border color

Border color




Tags:

access:  private



[ Top ]

$_borderStyle =

[line 66]

Border style

Border style




Tags:

access:  private

Type:   string


[ Top ]

$_hashIndex =

[line 292]

Hash index

Hash index




Tags:

access:  private

Type:   string


[ Top ]

$_parent =

[line 80]

Parent

Parent




Tags:

access:  private



[ Top ]

$_parentPropertyName =

[line 87]

Parent Property Name

Parent Property Name




Tags:

access:  private

Type:   string


[ Top ]



Class Methods


method applyFromArray [line 217]

void applyFromArray( [array $pStyles = null])

Apply styles from array

Apply styles from array

  1.  $objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->getTop()->applyFromArray(
  2.          array(
  3.              'style' => PHPExcel_Style_Border::BORDER_DASHDOT,
  4.              'color' => array(
  5.                  'rgb' => '808080'
  6.              )
  7.          )
  8.  );




Tags:

throws:  Exception
access:  public


Parameters:

array   $pStyles   Array containing style information

[ Top ]

constructor __construct [line 92]

PHPExcel_Style_Border __construct( )

Create a new PHPExcel_Style_Border

Create a new PHPExcel_Style_Border




Tags:

access:  public


[ Top ]

method getBorderStyle [line 235]

string getBorderStyle( )

Get Border style

Get Border style




Tags:

access:  public


[ Top ]

method getColor [line 257]

PHPExcel_Style_Color getColor( )

Get Border Color

Get Border Color




Tags:

access:  public


[ Top ]

method getHashCode [line 278]

string getHashCode( )

Get hash code

Get hash code




Tags:

return:  Hash code
access:  public


[ Top ]

method getHashIndex [line 302]

string 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.

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.




Tags:

return:  Hash index
access:  public


[ Top ]

method propertyBeginBind [line 163]

PHPExcel_Style_Border propertyBeginBind( )

Property Begin Bind If no PHPExcel_Style_Border has been bound to PHPExcel_Style_Borders then bind this one.

Property Begin Bind If no PHPExcel_Style_Border has been bound to PHPExcel_Style_Borders then bind this one. Return the actual bound one.




Tags:

access:  private


[ Top ]

method propertyGetBound [line 122]

PHPExcel_Style_Border propertyGetBound( )

Property Get Bound

Property Get Bound Returns the PHPExcel_Style_Border that is actual bound to PHPExcel_Style_Borders




Tags:

access:  private


[ Top ]

method propertyPrepareBind [line 107]

void propertyPrepareBind( $parent $parent, $parentPropertyName $parentPropertyName)

Property Prepare bind

Property Prepare bind Configures this object for late binding as a property of a parent object




Tags:

access:  public


Parameters:

$parent   $parent  
$parentPropertyName   $parentPropertyName  

[ Top ]

method setBorderStyle [line 244]

void setBorderStyle( [string $pValue = PHPExcel_Style_Border::BORDER_NONE])

Set Border style

Set Border style




Tags:

access:  public


Parameters:

string   $pValue  

[ Top ]

method setColor [line 269]

void setColor( [PHPExcel_Style_Color $pValue = null])

Set Border Color

Set Border Color




Tags:

throws:  Exception
access:  public


Parameters:

PHPExcel_Style_Color   $pValue  

[ Top ]

method setHashIndex [line 314]

void setHashIndex( string $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.

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.




Tags:

access:  public


Parameters:

string   $value   Hash index

[ Top ]

method __clone [line 321]

void __clone( )

Implement PHP __clone to create a deep clone, not just a shallow copy.

Implement PHP __clone to create a deep clone, not just a shallow copy.




Tags:

access:  public


[ Top ]


Class Constants

BORDER_DASHDOT =  'dashDot'

[line 47]


[ Top ]

BORDER_DASHDOTDOT =  'dashDotDot'

[line 48]


[ Top ]

BORDER_DASHED =  'dashed'

[line 49]


[ Top ]

BORDER_DOTTED =  'dotted'

[line 50]


[ Top ]

BORDER_DOUBLE =  'double'

[line 51]


[ Top ]

BORDER_HAIR =  'hair'

[line 52]


[ Top ]

BORDER_MEDIUM =  'medium'

[line 53]


[ Top ]

BORDER_MEDIUMDASHDOT =  'mediumDashDot'

[line 54]


[ Top ]

BORDER_MEDIUMDASHDOTDOT =  'mediumDashDotDot'

[line 55]


[ Top ]

BORDER_MEDIUMDASHED =  'mediumDashed'

[line 56]


[ Top ]

BORDER_NONE =  'none'

[line 46]


[ Top ]

BORDER_SLANTDASHDOT =  'slantDashDot'

[line 57]


[ Top ]

BORDER_THICK =  'thick'

[line 58]


[ Top ]

BORDER_THIN =  'thin'

[line 59]


[ Top ]



Documentation generated on Mon, 05 Jan 2009 20:36:28 +0100 by phpDocumentor 1.4.1