PHPExcel_Style_NumberFormat
category | PHPExcel |
---|---|
package | PHPExcel_Style |
copyright | Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) |
__clone()
inherited_from | \PHPExcel_Style_Supervisor::__clone() |
---|
__construct(boolean $isSupervisor, boolean $isConditional)
boolean
Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are
boolean
Flag indicating if this is a conditional style or not Leave this value at default unless you understand exactly what its ramifications are
applyFromArray(array $pStyles) : \PHPExcel_Style_NumberFormat
$objPHPExcel->getActiveSheet()->getStyle('B2')->getNumberFormat()->applyFromArray(
array(
'code' => PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_EUR_SIMPLE
)
);
array
Array containing style information
\PHPExcel_Exception |
---|
bindParent(\PHPExcel $parent, $parentPropertyName) : \PHPExcel_Style_Supervisor
Only used for supervisor
inherited_from | \PHPExcel_Style_Supervisor::bindParent() |
---|
\PHPExcel
builtInFormatCode(int $pIndex) : string
int
string
builtInFormatCodeIndex(string $formatCode) : int | boolean
string
int
boolean
getActiveCell() : string
Only used for supervisor
inherited_from | \PHPExcel_Style_Supervisor::getActiveCell() |
---|
string
E.g. 'A1'getActiveSheet() : \PHPExcel_Worksheet
Only used for supervisor
inherited_from | \PHPExcel_Style_Supervisor::getActiveSheet() |
---|
getBuiltInFormatCode() : int
int
getFormatCode() : string
string
getHashCode() : string
string
Hash codegetIsSupervisor() : boolean
inherited_from | \PHPExcel_Style_Supervisor::getIsSupervisor() |
---|
boolean
getSelectedCells() : string
Only used for supervisor
inherited_from | \PHPExcel_Style_Supervisor::getSelectedCells() |
---|
string
E.g. 'A1'getSharedComponent() : \PHPExcel_Style_NumberFormat
getStyleArray(array $array) : array
array
array
toFormattedString(mixed $value, string $format, array $callBack) : string
mixed
Value to format
string
Format code
array
Callback function for additional formatting of string
string
Formatted string_complexNumberFormatMask($number, $mask)
_formatAsDate($value, $format)
_formatAsFraction($value, $format)
_formatAsPercentage($value, $format)
fillBuiltInFormatCodes()
$_builtInFormatCode : string
$_builtInFormats : array
$_flippedBuiltInFormats : array
$_formatCode : string
$_isSupervisor : boolean
inherited_from | \PHPExcel_Style_Supervisor::$$_isSupervisor |
---|
$_parent : \PHPExcel_Style
Only used for supervisor
inherited_from | \PHPExcel_Style_Supervisor::$$_parent |
---|
$_dateFormatReplacements : array
$_dateFormatReplacements12 : array
$_dateFormatReplacements24 : array
FORMAT_CURRENCY_EUR_SIMPLE
FORMAT_CURRENCY_USD
FORMAT_CURRENCY_USD_SIMPLE
FORMAT_DATE_DATETIME
FORMAT_DATE_DDMMYYYY
FORMAT_DATE_DMMINUS
FORMAT_DATE_DMYMINUS
FORMAT_DATE_DMYSLASH
FORMAT_DATE_MYMINUS
FORMAT_DATE_TIME1
FORMAT_DATE_TIME2
FORMAT_DATE_TIME3
FORMAT_DATE_TIME4
FORMAT_DATE_TIME5
FORMAT_DATE_TIME6
FORMAT_DATE_TIME7
FORMAT_DATE_TIME8
FORMAT_DATE_XLSX14
FORMAT_DATE_XLSX15
FORMAT_DATE_XLSX16
FORMAT_DATE_XLSX17
FORMAT_DATE_XLSX22
FORMAT_DATE_YYYYMMDD
FORMAT_DATE_YYYYMMDD2
FORMAT_DATE_YYYYMMDDSLASH
FORMAT_GENERAL
FORMAT_NUMBER
FORMAT_NUMBER_00
FORMAT_NUMBER_COMMA_SEPARATED1
FORMAT_NUMBER_COMMA_SEPARATED2
FORMAT_PERCENTAGE
FORMAT_PERCENTAGE_00
FORMAT_TEXT