[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/PHPExcel/PHPExcel/ -> Style.php (summary)

PHPExcel Copyright (c) 2006 - 2012 PHPExcel

Copyright: Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
License: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
Version: 1.7.7, 2012-05-19
File Size: 679 lines (19 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PHPExcel_Style:: (22 methods):
  __construct()
  bindParent()
  getIsSupervisor()
  getSharedComponent()
  getActiveSheet()
  getSelectedCells()
  getActiveCell()
  getParent()
  applyFromArray()
  getFill()
  getFont()
  setFont()
  getBorders()
  getAlignment()
  getNumberFormat()
  getConditionalStyles()
  setConditionalStyles()
  getProtection()
  getHashCode()
  getIndex()
  setIndex()
  __clone()


Class: PHPExcel_Style  - X-Ref

PHPExcel_Style

__construct($isSupervisor = false)   X-Ref
Create a new PHPExcel_Style

param: boolean $isSupervisor

bindParent($parent)   X-Ref
Bind parent. Only used for supervisor

param: PHPExcel $parent
return: PHPExcel_Style

getIsSupervisor()   X-Ref
Is this a supervisor or a real style component?

return: boolean

getSharedComponent()   X-Ref
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor

return: PHPExcel_Style

getActiveSheet()   X-Ref
Get the currently active sheet. Only used for supervisor

return: PHPExcel_Worksheet

getSelectedCells()   X-Ref
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor

return: string E.g. 'A1'

getActiveCell()   X-Ref
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor

return: string E.g. 'A1'

getParent()   X-Ref
Get parent. Only used for style supervisor

return: PHPExcel

applyFromArray($pStyles = null, $pAdvanced = true)   X-Ref
Apply styles from array

<code>
$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'
)
)
)
)
);
</code>

param: array    $pStyles    Array containing style information
param: boolean        $pAdvanced    Advanced mode for setting borders.
return: PHPExcel_Style

getFill()   X-Ref
Get Fill

return: PHPExcel_Style_Fill

getFont()   X-Ref
Get Font

return: PHPExcel_Style_Font

setFont(PHPExcel_Style_Font $font)   X-Ref
Set font

param: PHPExcel_Style_Font $font
return: PHPExcel_Style

getBorders()   X-Ref
Get Borders

return: PHPExcel_Style_Borders

getAlignment()   X-Ref
Get Alignment

return: PHPExcel_Style_Alignment

getNumberFormat()   X-Ref
Get Number Format

return: PHPExcel_Style_NumberFormat

getConditionalStyles()   X-Ref
Get Conditional Styles. Only used on supervisor.

return: PHPExcel_Style_Conditional[]

setConditionalStyles($pValue = null)   X-Ref
Set Conditional Styles. Only used on supervisor.

param: PHPExcel_Style_Conditional[]    $pValue    Array of condtional styles
return: PHPExcel_Style

getProtection()   X-Ref
Get Protection

return: PHPExcel_Style_Protection

getHashCode()   X-Ref
Get hash code

return: string    Hash code

getIndex()   X-Ref
Get own index in style collection

return: int

setIndex($pValue)   X-Ref
Set own index in style collection

param: int $pValue

__clone()   X-Ref
Implement PHP __clone to create a deep clone, not just a shallow copy.




Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1