ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($isSupervisor=false) | |
Create a new PHPExcel_Style_NumberFormat. | |
bindParent ($parent) | |
Bind parent. | |
getIsSupervisor () | |
Is this a supervisor or a real style component? | |
getSharedComponent () | |
Get the shared style component for the currently active cell in currently active sheet. | |
getActiveSheet () | |
Get the currently active sheet. | |
getXSelectedCells () | |
Get the currently active cell coordinate in currently active sheet. | |
getXActiveCell () | |
Get the currently active cell coordinate in currently active sheet. | |
getStyleArray ($array) | |
Build style array from subcomponents. | |
applyFromArray ($pStyles=null) | |
Apply styles from array. | |
getFormatCode () | |
Get Format Code. | |
setFormatCode ($pValue=PHPExcel_Style_NumberFormat::FORMAT_GENERAL) | |
Set Format Code. | |
getBuiltInFormatCode () | |
Get Built-In Format Code. | |
setBuiltInFormatCode ($pValue=0) | |
Set Built-In Format Code. | |
getHashCode () | |
Get hash code. | |
getHashIndex () | |
Get hash index. | |
setHashIndex ($value) | |
Set hash index. | |
__clone () | |
Implement PHP __clone to create a deep clone, not just a shallow copy. |
Static Public Member Functions | |
static | builtInFormatCode ($pIndex) |
Get built-in format code. | |
static | builtInFormatCodeIndex ($formatCode) |
Get built-in format code index. | |
static | toFormattedString ($value= '', $format= '') |
Convert a value in a pre-defined format to a PHP string. |
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_-' |
Static Private Member Functions | |
static | fillBuiltInFormatCodes () |
Fill built-in format codes. |
Private Attributes | |
$_formatCode | |
$_builtInFormatCode | |
$_parentPropertyName | |
$_isSupervisor | |
$_parent | |
$_hashIndex |
Static Private Attributes | |
static | $_builtInFormats |
static | $_flippedBuiltInFormats |
Definition at line 54 of file NumberFormat.php.
PHPExcel_Style_NumberFormat::__construct | ( | $isSupervisor = false | ) |
Create a new PHPExcel_Style_NumberFormat.
Definition at line 148 of file NumberFormat.php.
References FORMAT_GENERAL.
PHPExcel_Style_NumberFormat::__clone | ( | ) |
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 |
Exception |
Definition at line 248 of file NumberFormat.php.
References getActiveSheet(), getStyleArray(), getXSelectedCells(), and setFormatCode().
PHPExcel_Style_NumberFormat::bindParent | ( | $parent | ) |
Bind parent.
Only used for supervisor
PHPExcel_Style | $parent |
Definition at line 164 of file NumberFormat.php.
|
static |
Get built-in format code.
int | $pIndex |
Definition at line 400 of file NumberFormat.php.
References fillBuiltInFormatCodes().
Referenced by PHPExcel_Reader_Excel5\_readXf(), getFormatCode(), PHPExcel_Reader_Excel2007\load(), and setBuiltInFormatCode().
|
static |
Get built-in format code index.
string | $formatCode |
Definition at line 421 of file NumberFormat.php.
References fillBuiltInFormatCodes().
Referenced by setFormatCode().
|
staticprivate |
Fill built-in format codes.
Definition at line 332 of file NumberFormat.php.
Referenced by builtInFormatCode(), and builtInFormatCodeIndex().
PHPExcel_Style_NumberFormat::getActiveSheet | ( | ) |
Get the currently active sheet.
Only used for supervisor
Definition at line 195 of file NumberFormat.php.
Referenced by applyFromArray(), getXActiveCell(), getXSelectedCells(), setBuiltInFormatCode(), and setFormatCode().
PHPExcel_Style_NumberFormat::getBuiltInFormatCode | ( | ) |
Get Built-In Format Code.
Definition at line 304 of file NumberFormat.php.
References $_builtInFormatCode, and getSharedComponent().
PHPExcel_Style_NumberFormat::getFormatCode | ( | ) |
Get Format Code.
Definition at line 268 of file NumberFormat.php.
References $_formatCode, builtInFormatCode(), and getSharedComponent().
Referenced by PHPExcel_Shared_Date\isDateTimeFormat().
PHPExcel_Style_NumberFormat::getHashCode | ( | ) |
Get hash code.
Implements PHPExcel_IComparable.
Definition at line 438 of file NumberFormat.php.
References getSharedComponent().
PHPExcel_Style_NumberFormat::getHashIndex | ( | ) |
Get hash index.
Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
Implements PHPExcel_IComparable.
Definition at line 464 of file NumberFormat.php.
References $_hashIndex.
PHPExcel_Style_NumberFormat::getIsSupervisor | ( | ) |
Is this a supervisor or a real style component?
Definition at line 174 of file NumberFormat.php.
References $_isSupervisor.
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 185 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 228 of file NumberFormat.php.
Referenced by applyFromArray(), setBuiltInFormatCode(), and setFormatCode().
PHPExcel_Style_NumberFormat::getXActiveCell | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 217 of file NumberFormat.php.
References getActiveSheet().
PHPExcel_Style_NumberFormat::getXSelectedCells | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 206 of file NumberFormat.php.
References getActiveSheet().
Referenced by applyFromArray(), setBuiltInFormatCode(), and setFormatCode().
PHPExcel_Style_NumberFormat::setBuiltInFormatCode | ( | $pValue = 0 | ) |
Set Built-In Format Code.
int | $pValue |
Definition at line 317 of file NumberFormat.php.
References builtInFormatCode(), getActiveSheet(), getStyleArray(), and getXSelectedCells().
PHPExcel_Style_NumberFormat::setFormatCode | ( | $pValue = PHPExcel_Style_NumberFormat::FORMAT_GENERAL | ) |
Set Format Code.
string | $pValue |
Definition at line 285 of file NumberFormat.php.
References builtInFormatCodeIndex(), FORMAT_GENERAL, getActiveSheet(), getStyleArray(), and getXSelectedCells().
Referenced by applyFromArray().
PHPExcel_Style_NumberFormat::setHashIndex | ( | $value | ) |
Set hash index.
Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
string | $value | Hash index |
Implements PHPExcel_IComparable.
Definition at line 476 of file NumberFormat.php.
|
static |
Convert a value in a pre-defined format to a PHP string.
mixed | $value | Value to format |
string | $format | Format code |
Definition at line 501 of file NumberFormat.php.
References PHPExcel_Shared_Date\ExcelToPHP(), and PHPExcel_Calculation_Functions\GCD().
Referenced by PHPExcel_Writer_HTML\_generateRow(), PHPExcel_Calculation_Functions\TEXTFORMAT(), and PHPExcel_Worksheet\toArray().
|
private |
Definition at line 122 of file NumberFormat.php.
Referenced by getBuiltInFormatCode().
|
staticprivate |
Definition at line 101 of file NumberFormat.php.
|
staticprivate |
Definition at line 108 of file NumberFormat.php.
|
private |
Definition at line 115 of file NumberFormat.php.
Referenced by getFormatCode().
|
private |
Definition at line 454 of file NumberFormat.php.
Referenced by getHashIndex().
|
private |
Definition at line 136 of file NumberFormat.php.
Referenced by getIsSupervisor().
|
private |
Definition at line 143 of file NumberFormat.php.
|
private |
Definition at line 129 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_EUR_SIMPLE = '[$EUR ]#,##0.00_-' |
Definition at line 94 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_USD = '$#,##0_-' |
Definition at line 93 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_USD_SIMPLE = '"$"#,##0.00_-' |
Definition at line 92 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_DATE_DATETIME = 'd/m/y h:mm' |
Definition at line 81 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_DDMMYYYY = 'dd/mm/yy' |
Definition at line 71 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_DMMINUS = 'd-m' |
Definition at line 74 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_DMYMINUS = 'd-m-y' |
Definition at line 73 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_DMYSLASH = 'd/m/y' |
Definition at line 72 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_MYMINUS = 'm-y' |
Definition at line 75 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME1 = 'h:mm AM/PM' |
Definition at line 82 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 83 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME3 = 'h:mm' |
Definition at line 84 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 85 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME5 = 'mm:ss' |
Definition at line 86 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME6 = 'h:mm:ss' |
Definition at line 87 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME7 = 'i:s.S' |
Definition at line 88 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME8 = 'h:mm:ss;@' |
Definition at line 89 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX14 = 'mm-dd-yy' |
Definition at line 76 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX15 = 'd-mmm-yy' |
Definition at line 77 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX16 = 'd-mmm' |
Definition at line 78 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX17 = 'mmm-yy' |
Definition at line 79 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 80 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDD = 'yy-mm-dd' |
Definition at line 70 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDD2 = 'yyyy-mm-dd' |
Definition at line 69 of file NumberFormat.php.
Referenced by PHPExcel_Cell_AdvancedValueBinder\bindValue(), and PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDDSLASH = 'yy/mm/dd;@' |
Definition at line 90 of file NumberFormat.php.
Referenced by PHPExcel_Shared_Date\isDateTimeFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_GENERAL = 'General' |
Definition at line 57 of file NumberFormat.php.
Referenced by __construct(), PHPExcel_Reader_Excel2007\load(), and setFormatCode().
const PHPExcel_Style_NumberFormat::FORMAT_NUMBER = '0' |
Definition at line 61 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_NUMBER_00 = '0.00' |
Definition at line 62 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_NUMBER_COMMA_SEPARATED1 = '#,##0.00' |
Definition at line 63 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_NUMBER_COMMA_SEPARATED2 = '#,##0.00_-' |
Definition at line 64 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE = '0%' |
Definition at line 66 of file NumberFormat.php.
Referenced by PHPExcel_Cell_AdvancedValueBinder\bindValue().
const PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_00 = '0.00%' |
Definition at line 67 of file NumberFormat.php.
const PHPExcel_Style_NumberFormat::FORMAT_TEXT = '@' |
Definition at line 59 of file NumberFormat.php.
Referenced by PHPExcel_Cell_AdvancedValueBinder\bindValue().