ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct ($isSupervisor=FALSE, $isConditional=FALSE) | |
Create a new PHPExcel_Style_NumberFormat. More... | |
getSharedComponent () | |
Get the shared style component for the currently active cell in currently active sheet. More... | |
getStyleArray ($array) | |
Build style array from subcomponents. More... | |
applyFromArray ($pStyles=null) | |
Apply styles from array. More... | |
getFormatCode () | |
Get Format Code. More... | |
setFormatCode ($pValue=PHPExcel_Style_NumberFormat::FORMAT_GENERAL) | |
Set Format Code. More... | |
getBuiltInFormatCode () | |
Get Built-In Format Code. More... | |
setBuiltInFormatCode ($pValue=0) | |
Set Built-In Format Code. More... | |
getHashCode () | |
Get hash code. More... | |
Public Member Functions inherited from PHPExcel_Style_Supervisor | |
__construct ($isSupervisor=FALSE) | |
Create a new PHPExcel_Style_Alignment. More... | |
bindParent ($parent, $parentPropertyName=NULL) | |
Bind parent. More... | |
getIsSupervisor () | |
Is this a supervisor or a cell style component? More... | |
getActiveSheet () | |
Get the currently active sheet. More... | |
getSelectedCells () | |
Get the currently active cell coordinate in currently active sheet. More... | |
getActiveCell () | |
Get the currently active cell coordinate in currently active sheet. More... | |
__clone () | |
Implement PHP __clone to create a deep clone, not just a shallow copy. More... | |
Static Public Member Functions | |
static | builtInFormatCode ($pIndex) |
Get built-in format code. More... | |
static | builtInFormatCodeIndex ($formatCode) |
Get built-in format code index. More... | |
static | toFormattedString ($value='0', $format=PHPExcel_Style_NumberFormat::FORMAT_GENERAL, $callBack=null) |
Convert a value in a pre-defined format to a PHP string. More... | |
Data Fields | |
const | FORMAT_GENERAL = 'General' |
const | FORMAT_TEXT = '@' |
const | FORMAT_NUMBER = '0' |
const | FORMAT_NUMBER_00 = '0.00' |
const | FORMAT_NUMBER_COMMA_SEPARATED1 = '#,##0.00' |
const | FORMAT_NUMBER_COMMA_SEPARATED2 = '#,##0.00_-' |
const | FORMAT_PERCENTAGE = '0%' |
const | FORMAT_PERCENTAGE_00 = '0.00%' |
const | FORMAT_DATE_YYYYMMDD2 = 'yyyy-mm-dd' |
const | FORMAT_DATE_YYYYMMDD = 'yy-mm-dd' |
const | FORMAT_DATE_DDMMYYYY = 'dd/mm/yy' |
const | FORMAT_DATE_DMYSLASH = 'd/m/y' |
const | FORMAT_DATE_DMYMINUS = 'd-m-y' |
const | FORMAT_DATE_DMMINUS = 'd-m' |
const | FORMAT_DATE_MYMINUS = 'm-y' |
const | FORMAT_DATE_XLSX14 = 'mm-dd-yy' |
const | FORMAT_DATE_XLSX15 = 'd-mmm-yy' |
const | FORMAT_DATE_XLSX16 = 'd-mmm' |
const | FORMAT_DATE_XLSX17 = 'mmm-yy' |
const | FORMAT_DATE_XLSX22 = 'm/d/yy h:mm' |
const | FORMAT_DATE_DATETIME = 'd/m/y h:mm' |
const | FORMAT_DATE_TIME1 = 'h:mm AM/PM' |
const | FORMAT_DATE_TIME2 = 'h:mm:ss AM/PM' |
const | FORMAT_DATE_TIME3 = 'h:mm' |
const | FORMAT_DATE_TIME4 = 'h:mm:ss' |
const | FORMAT_DATE_TIME5 = 'mm:ss' |
const | FORMAT_DATE_TIME6 = 'h:mm:ss' |
const | FORMAT_DATE_TIME7 = 'i:s.S' |
const | FORMAT_DATE_TIME8 = 'h:mm:ss;@' |
const | FORMAT_DATE_YYYYMMDDSLASH = 'yy/mm/dd;@' |
const | FORMAT_CURRENCY_USD_SIMPLE = '"$"#,##0.00_-' |
const | FORMAT_CURRENCY_USD = '$#,##0_-' |
const | FORMAT_CURRENCY_EUR_SIMPLE = '[$EUR ]#,##0.00_-' |
Protected Attributes | |
$_formatCode = PHPExcel_Style_NumberFormat::FORMAT_GENERAL | |
$_builtInFormatCode = 0 | |
Protected Attributes inherited from PHPExcel_Style_Supervisor | |
$_isSupervisor | |
$_parent | |
Static Protected Attributes | |
static | $_builtInFormats |
static | $_flippedBuiltInFormats |
Static Private Member Functions | |
static | fillBuiltInFormatCodes () |
Fill built-in format codes. More... | |
static | _formatAsDate (&$value, &$format) |
static | _formatAsPercentage (&$value, &$format) |
static | _formatAsFraction (&$value, &$format) |
static | _complexNumberFormatMask ($number, $mask, $level=0) |
Static Private Attributes | |
static | $_dateFormatReplacements |
static | $_dateFormatReplacements24 |
static | $_dateFormatReplacements12 |
Definition at line 36 of file NumberFormat.php.
PHPExcel_Style_NumberFormat::__construct | ( | $isSupervisor = FALSE , |
|
$isConditional = FALSE |
|||
) |
Create a new PHPExcel_Style_NumberFormat.
boolean | $isSupervisor | Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are |
boolean | $isConditional | Flag indicating if this is a conditional style or not Leave this value at default unless you understand exactly what its ramifications are |
Definition at line 116 of file NumberFormat.php.
|
staticprivate |
|
staticprivate |
Definition at line 435 of file NumberFormat.php.
References PHPExcel_Shared_Date\ExcelToPHPObject().
|
staticprivate |
Definition at line 476 of file NumberFormat.php.
References PHPExcel_Calculation_MathTrig\GCD().
|
staticprivate |
Definition at line 458 of file NumberFormat.php.
PHPExcel_Style_NumberFormat::applyFromArray | ( | $pStyles = null | ) |
Apply styles from array.
$objPHPExcel->getActiveSheet()->getStyle('B2')->getNumberFormat()->applyFromArray( array( 'code' => PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_EUR_SIMPLE ) );
array | $pStyles | Array containing style information |
PHPExcel_Exception |
Definition at line 164 of file NumberFormat.php.
References PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), getStyleArray(), and setFormatCode().
|
static |
Get built-in format code.
int | $pIndex |
Definition at line 321 of file NumberFormat.php.
Referenced by PHPExcel_Reader_Excel5\_readXf(), and PHPExcel_Reader_Excel2007\load().
|
static |
Get built-in format code index.
string | $formatCode |
Definition at line 343 of file NumberFormat.php.
|
staticprivate |
Fill built-in format codes.
Definition at line 253 of file NumberFormat.php.
References array, and FORMAT_GENERAL.
PHPExcel_Style_NumberFormat::getBuiltInFormatCode | ( | ) |
Get Built-In Format Code.
Definition at line 223 of file NumberFormat.php.
References $_builtInFormatCode, and getSharedComponent().
PHPExcel_Style_NumberFormat::getFormatCode | ( | ) |
Get Format Code.
Definition at line 185 of file NumberFormat.php.
References $_formatCode, and getSharedComponent().
Referenced by PHPExcel_Shared_Date\isDateTimeFormat().
PHPExcel_Style_NumberFormat::getHashCode | ( | ) |
Get hash code.
Implements PHPExcel_IComparable.
Definition at line 361 of file NumberFormat.php.
References getSharedComponent().
PHPExcel_Style_NumberFormat::getSharedComponent | ( | ) |
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor
Definition at line 133 of file NumberFormat.php.
Referenced by getBuiltInFormatCode(), getFormatCode(), and getHashCode().
PHPExcel_Style_NumberFormat::getStyleArray | ( | $array | ) |
Build style array from subcomponents.
array | $array |
Definition at line 144 of file NumberFormat.php.
References array.
Referenced by applyFromArray(), setBuiltInFormatCode(), and setFormatCode().
PHPExcel_Style_NumberFormat::setBuiltInFormatCode | ( | $pValue = 0 | ) |
Set Built-In Format Code.
int | $pValue |
Definition at line 237 of file NumberFormat.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
PHPExcel_Style_NumberFormat::setFormatCode | ( | $pValue = PHPExcel_Style_NumberFormat::FORMAT_GENERAL | ) |
Set Format Code.
string | $pValue |
Definition at line 203 of file NumberFormat.php.
References array, FORMAT_GENERAL, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
|
static |
Convert a value in a pre-defined format to a PHP string.
mixed | $value | Value to format |
string | $format | Format code |
array | $callBack | Callback function for additional formatting of string |
Definition at line 547 of file NumberFormat.php.
References $n, array, FORMAT_GENERAL, FORMAT_TEXT, PHPExcel_Shared_String\getCurrencyCode(), PHPExcel_Shared_String\getDecimalSeparator(), and PHPExcel_Shared_String\getThousandsSeparator().
Referenced by PHPExcel_Chart_Renderer_jpgraph\_formatDataSetLabels(), PHPExcel_Writer_HTML\_generateRow(), PHPExcel_Worksheet\calculateColumnWidths(), PHPExcel_Calculation_TextData\DOLLAR(), PHPExcel_Cell\getFormattedValue(), PHPExcel_Worksheet\rangeToArray(), and PHPExcel_Calculation_TextData\TEXTFORMAT().
|
protected |
Definition at line 104 of file NumberFormat.php.
Referenced by getBuiltInFormatCode().
|
staticprotected |
Definition at line 83 of file NumberFormat.php.
|
staticprivate |
Definition at line 378 of file NumberFormat.php.
|
staticprivate |
Definition at line 430 of file NumberFormat.php.
|
staticprivate |
Definition at line 421 of file NumberFormat.php.
|
staticprotected |
Definition at line 90 of file NumberFormat.php.
|
protected |
Definition at line 97 of file NumberFormat.php.
Referenced by getFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_EUR_SIMPLE = '[$EUR ]#,##0.00_-' |
Definition at line 76 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_USD = '$#,##0_-' |
Definition at line 75 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_USD_SIMPLE = '"$"#,##0.00_-' |
Definition at line 74 of file NumberFormat.php.
Referenced by PHPExcel_Cell_AdvancedValueBinder\bindValue(), PHPExcel_Reader_OOCalc\loadIntoExisting(), and AdvancedValueBinderTest\provider().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_DATETIME = 'd/m/y h:mm' |
Definition at line 63 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_DDMMYYYY = 'dd/mm/yy' |
Definition at line 53 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_DMMINUS = 'd-m' |
Definition at line 56 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_DMYMINUS = 'd-m-y' |
Definition at line 55 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_DMYSLASH = 'd/m/y' |
Definition at line 54 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_MYMINUS = 'm-y' |
Definition at line 57 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME1 = 'h:mm AM/PM' |
Definition at line 64 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME2 = 'h:mm:ss AM/PM' |
Definition at line 65 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME3 = 'h:mm' |
Definition at line 66 of file NumberFormat.php.
Referenced by PHPExcel_Cell_AdvancedValueBinder\bindValue(), and PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME4 = 'h:mm:ss' |
Definition at line 67 of file NumberFormat.php.
Referenced by PHPExcel_Cell_AdvancedValueBinder\bindValue(), PHPExcel_Shared_Date\isDateTimeFormatCode(), and PHPExcel_Reader_OOCalc\loadIntoExisting().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME5 = 'mm:ss' |
Definition at line 68 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME6 = 'h:mm:ss' |
Definition at line 69 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME7 = 'i:s.S' |
Definition at line 70 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME8 = 'h:mm:ss;@' |
Definition at line 71 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX14 = 'mm-dd-yy' |
Definition at line 58 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX15 = 'd-mmm-yy' |
Definition at line 59 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode(), and PHPExcel_Reader_OOCalc\loadIntoExisting().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX16 = 'd-mmm' |
Definition at line 60 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX17 = 'mmm-yy' |
Definition at line 61 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX22 = 'm/d/yy h:mm' |
Definition at line 62 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDD = 'yy-mm-dd' |
Definition at line 52 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDD2 = 'yyyy-mm-dd' |
Definition at line 51 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDDSLASH = 'yy/mm/dd;@' |
Definition at line 72 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_GENERAL = 'General' |
Definition at line 39 of file NumberFormat.php.
Referenced by fillBuiltInFormatCodes(), PHPExcel_Shared_Date\isDateTimeFormatCode(), PHPExcel_Reader_Excel2007\load(), PHPExcel_Reader_OOCalc\loadIntoExisting(), PHPExcel_Worksheet\rangeToArray(), setFormatCode(), and toFormattedString().
const PHPExcel_Style_NumberFormat::FORMAT_NUMBER = '0' |
Definition at line 43 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_NUMBER_00 = '0.00' |
Definition at line 44 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_NUMBER_COMMA_SEPARATED1 = '#,##0.00' |
Definition at line 45 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_NUMBER_COMMA_SEPARATED2 = '#,##0.00_-' |
Definition at line 46 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE = '0%' |
Definition at line 48 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_00 = '0.00%' |
Definition at line 49 of file NumberFormat.php.
Referenced by PHPExcel_Cell_AdvancedValueBinder\bindValue(), PHPExcel_Reader_OOCalc\loadIntoExisting(), and AdvancedValueBinderTest\provider().
const PHPExcel_Style_NumberFormat::FORMAT_TEXT = '@' |
Definition at line 41 of file NumberFormat.php.
Referenced by toFormattedString().