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

Class: PHPExcel_Style

Source Location: /PHPExcel/Style.php

Class Overview


PHPExcel_Style


Author(s):

Copyright:

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

Implements interfaces:

Variables

Methods



Class Details

[line 63]
PHPExcel_Style

PHPExcel_Style




Tags:

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


[ Top ]


Class Variables

static $_defaultStyle =

[line 70]

Default style

Default style




Tags:

access:  private

Type:   PHPExcel_Style


[ Top ]

$_alignment =

[line 98]

Alignment

Alignment




Tags:

access:  private



[ Top ]

$_borders =

[line 91]

Borders

Borders




Tags:

access:  private



[ Top ]

$_conditionalStyles =

[line 112]

Conditional styles

Conditional styles




Tags:

access:  private

Type:   PHPExcel_Style_Conditional[]


[ Top ]

$_fill =

[line 84]

Fill

Fill




Tags:

access:  private



[ Top ]

$_font =

[line 77]

Font

Font




Tags:

access:  private



[ Top ]

$_hashIndex =

[line 435]

Hash index

Hash index




Tags:

access:  private

Type:   string


[ Top ]

$_numberFormat =

[line 105]

Number Format

Number Format




Tags:

access:  private



[ Top ]

$_protection =

[line 119]

Protection

Protection




Tags:

access:  private



[ Top ]



Class Methods


static method getDefaultStyle [line 290]

static void getDefaultStyle( )

Get default style

Get default style




Tags:

access:  public


[ Top ]

static method setDefaultStyle [line 299]

static void setDefaultStyle( PHPExcel_Style $value)

Set default style - should only be used by PHPExcel_IReader implementations!

Set default style - should only be used by PHPExcel_IReader implementations!




Tags:

access:  public


Parameters:

PHPExcel_Style   $value  

[ Top ]

constructor __construct [line 124]

PHPExcel_Style __construct( )

Create a new PHPExcel_Style

Create a new PHPExcel_Style




Tags:

access:  public


[ Top ]

method applyFromArray [line 260]

void applyFromArray( [array $pStyles = null])

Apply styles from array

Apply styles from array

  1.  $objPHPExcel->getActiveSheet()->getStyle('B2')->applyFromArray(
  2.          array(
  3.              'font'    => array(
  4.                  'name'      => 'Arial',
  5.                  'bold'      => true,
  6.                  'italic'    => false,
  7.                  'underline' => PHPExcel_Style_Font::UNDERLINE_DOUBLE,
  8.                  'strike'    => false,
  9.                  'color'     => array(
  10.                      'rgb' => '808080'
  11.                  )
  12.              ),
  13.              'borders' => array(
  14.                  'bottom'     => array(
  15.                      'style' => PHPExcel_Style_Border::BORDER_DASHDOT,
  16.                      'color' => array(
  17.                          'rgb' => '808080'
  18.                      )
  19.                  ),
  20.                  'top'     => array(
  21.                      'style' => PHPExcel_Style_Border::BORDER_DASHDOT,
  22.                      'color' => array(
  23.                          'rgb' => '808080'
  24.                      )
  25.                  )
  26.              )
  27.          )
  28.  );




Tags:

throws:  Exception
access:  public


Parameters:

array   $pStyles   Array containing style information

[ Top ]

method getAlignment [line 350]

PHPExcel_Style_Alignment getAlignment( )

Get Alignment

Get Alignment




Tags:

access:  public


[ Top ]

method getBorders [line 336]

PHPExcel_Style_Borders getBorders( )

Get Borders

Get Borders




Tags:

access:  public


[ Top ]

method getConditionalStyles [line 378]

PHPExcel_Style_Conditional[] getConditionalStyles( )

Get Conditional Styles

Get Conditional Styles




Tags:

access:  public


[ Top ]

method getFill [line 308]

PHPExcel_Style_Fill getFill( )

Get Fill

Get Fill




Tags:

access:  public


[ Top ]

method getFont [line 322]

PHPExcel_Style_Font getFont( )

Get Font

Get Font




Tags:

access:  public


[ Top ]

method getHashCode [line 412]

string getHashCode( )

Get hash code

Get hash code




Tags:

return:  Hash code
access:  public


[ Top ]

method getHashIndex [line 445]

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 getNumberFormat [line 364]

PHPExcel_Style_NumberFormat getNumberFormat( )

Get Number Format

Get Number Format




Tags:

access:  public


[ Top ]

method getProtection [line 398]

PHPExcel_Style_Protection getProtection( )

Get Protection

Get Protection




Tags:

access:  public


[ Top ]

method propertyCompleteBind [line 156]

void propertyCompleteBind( $propertyObject $propertyObject, $propertyName $propertyName)

Property Complete Bind

Property Complete Bind Complete the binding process a child property object started




Tags:

throws:  Exception
access:  public


Parameters:

$propertyObject   $propertyObject  
$propertyName   $propertyName   Name of this property in the parent object

[ Top ]

method propertyIsBound [line 198]

boolean propertyIsBound( $propertyName $propertyName)

Property Is Bound

Property Is Bound Determines if a child property is bound to this one




Tags:

throws:  Exception
access:  public


Parameters:

$propertyName   $propertyName   Name of this property in the parent object

[ Top ]

method setConditionalStyles [line 387]

void setConditionalStyles( [PHPExcel_Style_Conditional[] $pValue = null])

Set Conditional Styles

Set Conditional Styles




Tags:

access:  public


Parameters:

PHPExcel_Style_Conditional[]   $pValue   Array of condtional styles

[ Top ]

method setHashIndex [line 457]

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 464]

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 ]


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