[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/phpexcel/PHPExcel/ -> Style.php (summary)

(no description)

File Size: 644 lines (24 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PHPExcel_Style:: (19 methods):
  __construct()
  getSharedComponent()
  getParent()
  getStyleArray()
  applyFromArray()
  getFill()
  getFont()
  setFont()
  getBorders()
  getAlignment()
  getNumberFormat()
  getConditionalStyles()
  setConditionalStyles()
  getProtection()
  getQuotePrefix()
  setQuotePrefix()
  getHashCode()
  getIndex()
  setIndex()


Class: PHPExcel_Style  - X-Ref

PHPExcel_Style

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

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

param: boolean $isSupervisor Flag indicating if this is a supervisor or not
param: boolean $isConditional Flag indicating if this is a conditional style or not

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

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

return: PHPExcel

getStyleArray($array)   X-Ref
Build style array from subcomponents

param: array $array
return: array

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'
)
)
),
'quotePrefix'    => true
)
);
</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

getQuotePrefix()   X-Ref
Get quote prefix

return: boolean

setQuotePrefix($pValue)   X-Ref
Set quote prefix

param: boolean $pValue

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



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1