[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

(no description)

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

Defines 1 class

PHPExcel_Style_NumberFormat:: (19 methods):
  __construct()
  getSharedComponent()
  getStyleArray()
  applyFromArray()
  getFormatCode()
  setFormatCode()
  getBuiltInFormatCode()
  setBuiltInFormatCode()
  fillBuiltInFormatCodes()
  builtInFormatCode()
  builtInFormatCodeIndex()
  getHashCode()
  setLowercaseCallback()
  escapeQuotesCallback()
  formatAsDate()
  formatAsPercentage()
  formatAsFraction()
  complexNumberFormatMask()
  toFormattedString()


Class: PHPExcel_Style_NumberFormat  - X-Ref

PHPExcel_Style_NumberFormat

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_NumberFormat

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_NumberFormat

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

param: array $array
return: array

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

<code>
$objPHPExcel->getActiveSheet()->getStyle('B2')->getNumberFormat()->applyFromArray(
array(
'code' => PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_EUR_SIMPLE
)
);
</code>

param: array    $pStyles    Array containing style information
return: PHPExcel_Style_NumberFormat

getFormatCode()   X-Ref
Get Format Code

return: string

setFormatCode($pValue = PHPExcel_Style_NumberFormat::FORMAT_GENERAL)   X-Ref
Set Format Code

param: string $pValue
return: PHPExcel_Style_NumberFormat

getBuiltInFormatCode()   X-Ref
Get Built-In Format Code

return: int

setBuiltInFormatCode($pValue = 0)   X-Ref
Set Built-In Format Code

param: int $pValue
return: PHPExcel_Style_NumberFormat

fillBuiltInFormatCodes()   X-Ref
Fill built-in format codes


builtInFormatCode($pIndex)   X-Ref
Get built-in format code

param: int        $pIndex
return: string

builtInFormatCodeIndex($formatCode)   X-Ref
Get built-in format code index

param: string        $formatCode
return: int|boolean

getHashCode()   X-Ref
Get hash code

return: string    Hash code

setLowercaseCallback($matches)   X-Ref
No description

escapeQuotesCallback($matches)   X-Ref
No description

formatAsDate(&$value, &$format)   X-Ref
No description

formatAsPercentage(&$value, &$format)   X-Ref
No description

formatAsFraction(&$value, &$format)   X-Ref
No description

complexNumberFormatMask($number, $mask, $level = 0)   X-Ref
No description

toFormattedString($value = '0', $format = PHPExcel_Style_NumberFormat::FORMAT_GENERAL, $callBack = null)   X-Ref
Convert a value in a pre-defined format to a PHP string

param: mixed    $value        Value to format
param: string    $format        Format code
param: array        $callBack    Callback function for additional formatting of string
return: string    Formatted string



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