| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
 Collaboration diagram for ilFormat:
 Collaboration diagram for ilFormat:| Public Member Functions | |
| ilFormat () | |
| getDateDE () | |
| input2date ($AInputDate) | |
| Prft eingegebes Datum und wandelt es in DB-konformen Syntax um Eingabe: TT.MM.JJJJ oder T.M.JJ oder TT.MM.JJJJ HH:MM:SS oder T.M.JJ HH:MM:SS Bei zweistelliger Jahresangabe wird bei YY > 70 19, bei YY < 70 20 vorgestellt Ausgabe: YYYY-MM-DD oder YYYY-MM-DD HH:MM:SS OPTIONAL wird die aktuelle Systemzeit hinzugefgt (Ausgabe: YYYY-MM-DD hh:mm:ss) | |
| dateDB2timestamp ($ADatumSQL) | |
| db-datetime to timestamp | |
| dateDE2timestamp ($ADatum) | |
| German datetime to timestamp. | |
| fdateDB2dateDE ($t) | |
| formats db-datetime to german date | |
| ftimestamp2dateDE ($t) | |
| formats timestamp to german date | |
| ftimestamp2datetimeDE ($t) | |
| formats timestamp to german datetime | |
| ftimestamp2dateDB ($t) | |
| formats timestamp to db-date | |
| ftimestamp2datetimeDB ($aTimestamp) | |
| Timestamp to database datetime. | |
| compareDates ($ADate1, $ADate2) | |
| Datum vergleichen Erwartet timestamps Liefert das aktuellere Datum als Timestamp zurck. | |
| checkDecimal ($var) | |
| Prft Zahlen mit Nachkommastellen und erlaubt ein Komma als Nachstellentrenner. | |
| fGeld () | |
| formatiert Geldwerte (Format: 00,00 + Eurosymbol). | |
| fProzent () | |
| formatiert Prozentzahlen (Format: 00,00%). | |
| runden ($value) | |
| Floats auf 2 Nachkommastellen runden. | |
| fmtFloat ($a_float, $a_decimals=0, $a_dec_point=null, $a_thousands_sep=null, $a_suppress_dot_zero=false) | |
| format a float | |
| unixtimestamp2datetime ($a_unix_timestamp="") | |
| formatDate ($a_date, $a_mode="datetime", $a_omit_seconds=false, $a_relative=TRUE) | |
| format a date according to the user language shortcut for Format::fmtDateTime  public | |
| formatUnixTime ($ut, $with_time=false) | |
| dateDiff ($a_ts1, $a_ts2) | |
| datetime2unixTS ($a_datetime) | |
| converts datetime to a unix timestamp | |
| _secondsToString ($seconds, $force_with_seconds=false) | |
| converts seconds to string: Long: 7 days 4 hour(s) ... | |
| _secondsToShortString ($seconds) | |
| converts seconds to string: Long: 7 days 4 hour(s) ... | |
| Static Public Member Functions | |
| static | fmtDateTime ($a_str, $a_dateformat, $a_timeformat, $a_mode="datetime", $a_relative=TRUE) | 
| formatting function for dates | |
| static | _getLocalMoneyFormat ($float_number) | 
| converts a float number to money format, depending on system language | |
| static | _getSizeMagnitude () | 
| Returns the magnitude used for size units. | |
| static | formatFloat ($size, $a_decimals, $a_suppress_dot_zero=false, $a_mode= 'short', $a_lng=null) | 
| Returns the specified float in human friendly form. | |
| static | formatSize ($size, $a_mode= 'short', $a_lng=null) | 
| Returns the specified file size value in a human friendly form. | |
Definition at line 22 of file class.ilFormat.php.
| 
 | static | 
converts a float number to money format, depending on system language
Definition at line 634 of file class.ilFormat.php.
Referenced by ilPaymentObjectGUI\editPrices(), ilObjPaymentSettingsGUI\editPricesObject(), and ilPaymentStatisticGUI\showStatistics().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Returns the magnitude used for size units.
This function always returns the value 1024. Thus the value returned by this function is the same value that Windows and Mac OS X return for a file. The value is a GibiBit, MebiBit, KibiBit or byte unit.
For more information about these units see: http://en.wikipedia.org/wiki/Megabyte
Definition at line 661 of file class.ilFormat.php.
Referenced by ilObjRoleGUI\editObject2(), formatSize(), ilObjUserGUI\getValues(), ilObjRoleGUI\loadRoleProperties(), ilObjRoleGUI\readRoleProperties(), ilObjUserGUI\saveObject(), ilObjUserGUI\updateObject(), and ilObjRoleGUI\updateObject2().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFormat::_secondsToShortString | ( | $seconds | ) | 
converts seconds to string: Long: 7 days 4 hour(s) ...
| string | datetime | 
Definition at line 608 of file class.ilFormat.php.
Referenced by ilObjUserFolderGUI\_addLearningProgressWorksheet(), and ilObjUserFolderGUI\learningProgressObject().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFormat::_secondsToString | ( | $seconds, | |
| $force_with_seconds = false | |||
| ) | 
converts seconds to string: Long: 7 days 4 hour(s) ...
| string | datetime | 
Definition at line 547 of file class.ilFormat.php.
Referenced by ilLearningProgressBaseGUI\__appendLPDetails(), ilLearningProgressBaseGUI\__appendUserInfo(), ilAccountRegistrationGUI\__distributeMails(), ilCourseContentGUI\__renderItem(), ilCourseContentGUI\__renderUserItem(), ilLearningProgressBaseGUI\__showObjectDetails(), ilInfoScreenGUI\addMetaDataSections(), ilObjSystemFolderGUI\displayBasicSettings(), ilCourseContentGUI\editTimings(), ilCalendarChangedAppointmentsTableGUI\fillRow(), ilCalendarAppointmentsTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilObjSCORM2004LearningModule\getTrackingDataAgg(), ilObjSystemFolderGUI\initBasicSettingsForm(), ilPersonalProfileGUI\initGeneralSettingsForm(), ilObjUserTrackingGUI\outputTrackingDataObject(), ilLPTableBaseGUI\parseValue(), ilTrSummaryTableGUI\parseValue(), and ilInfoScreenGUI\showLearningProgress().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFormat::checkDecimal | ( | $var | ) | 
Prft Zahlen mit Nachkommastellen und erlaubt ein Komma als Nachstellentrenner.
| string | 
Definition at line 214 of file class.ilFormat.php.
Referenced by ilPaymentCouponGUI\saveCouponForm().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFormat::compareDates | ( | $ADate1, | |
| $ADate2 | |||
| ) | 
Datum vergleichen Erwartet timestamps Liefert das aktuellere Datum als Timestamp zurck.
| string | |
| string | 
Definition at line 199 of file class.ilFormat.php.
| ilFormat::dateDB2timestamp | ( | $ADatumSQL | ) | 
db-datetime to timestamp
| string | 
Definition at line 107 of file class.ilFormat.php.
References $timestamp.
Referenced by ilObjTestGUI\savePropertiesObject().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFormat::dateDE2timestamp | ( | $ADatum | ) | 
German datetime to timestamp.
| string | 
Definition at line 123 of file class.ilFormat.php.
References $timestamp.
| ilFormat::dateDiff | ( | $a_ts1, | |
| $a_ts2 | |||
| ) | 
Definition at line 493 of file class.ilFormat.php.
| ilFormat::datetime2unixTS | ( | $a_datetime | ) | 
converts datetime to a unix timestamp
| string | datetime | 
Definition at line 531 of file class.ilFormat.php.
| ilFormat::fdateDB2dateDE | ( | $t | ) | 
| ilFormat::fGeld | ( | ) | 
formatiert Geldwerte (Format: 00,00 + Eurosymbol).
Weiteres siehe fProzent
Definition at line 223 of file class.ilFormat.php.
References $test.
| 
 | static | 
formatting function for dates
In different languages, dates are formatted different. fmtDate expects a sql timestamp and a date format. Optional you may specify a time format. If you skip this parameter no time is displayed The format options follows the rules of the PHP date-function. See in the PHP manual for a list of possible formatting options public
| string | date date, given in sql-format YYYY-MM-DD HH:MM:SS | 
| string | date format (default is Y-m-d) | 
| string | time format (default is H:i:s) | 
| string | format mode (datetime, time or date) | 
| boolean | relative date output | 
Definition at line 288 of file class.ilFormat.php.
References $d, $lng, and $timestamp.
Referenced by formatDate(), and assFileUpload\getFileUploadZIPFile().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFormat::fmtFloat | ( | $a_float, | |
| $a_decimals = 0, | |||
| $a_dec_point = null, | |||
| $a_thousands_sep = null, | |||
| $a_suppress_dot_zero = false | |||
| ) | 
format a float
this functions takes php's number_format function and formats the given value with appropriate thousand and decimal separator. public
| float | the float to format | 
| integer | count of decimals | 
| integer | display thousands separator | 
| boolean | whether .0 should be suppressed | 
Definition at line 373 of file class.ilFormat.php.
References $lng.
Referenced by formatFloat(), and formatSize().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFormat::formatDate | ( | $a_date, | |
| $a_mode = "datetime", | |||
| $a_omit_seconds = false, | |||
| $a_relative = TRUE | |||
| ) | 
format a date according to the user language shortcut for Format::fmtDateTime public
| string | sql date | 
| string | format mode | 
| boolean | Relative date output | 
Definition at line 440 of file class.ilFormat.php.
References $lng, and fmtDateTime().
Referenced by ilObjExercise\__formatBody(), ilFileDataImportMail\__readFiles(), ilFileDataImportGroup\__readFiles(), ilQuestionpoolExport\buildExportFileXLS(), ilShopTopicsTableGUI\fillRow(), ilSCORMCertificateAdapter\getCertificateVariablesForPresentation(), ilTestCertificateAdapter\getCertificateVariablesForPresentation(), ilSCORMCertificateAdapter\getCertificateVariablesForPreview(), ilTestCertificateAdapter\getCertificateVariablesForPreview(), ilFileDataExercise\getFiles(), ilFileDataForum\getFiles(), ilFSStorageExercise\getFiles(), ilFileDataForum\getFilesOfPost(), ilFileDataMail\getUnsentFiles(), ilObjUserGUI\getValues(), ilLMStatisticsGUI\listUsersGroup(), ilLMStatisticsGUI\listUsersRole(), ilLMStatisticsGUI\search(), and ilObjFileAccessSettingsGUI\viewDiskQuotaReport().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Returns the specified float in human friendly form.
| float | a float | 
| ilLanguage | The language object, or null if you want to use the system language. | 
Definition at line 672 of file class.ilFormat.php.
References $lng, $size, and fmtFloat().
Referenced by ilDiskQuotaReminderMail\replacePlaceholders().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Returns the specified file size value in a human friendly form.
By default, the oder of magnitude 1024 is used. Thus the value returned by this function is the same value that Windows and Mac OS X return for a file. The value is a GibiBig, MebiBit, KibiBit or byte unit.
For more information about these units see: http://en.wikipedia.org/wiki/Megabyte
| integer | size in bytes | 
| string | mode: "short" is useful for display in the repository "long" is useful for display on the info page of an object | 
| ilLanguage | The language object, or null if you want to use the system language. | 
Definition at line 696 of file class.ilFormat.php.
References $lng, $result, $size, _getSizeMagnitude(), and fmtFloat().
Referenced by ilInfoScreenGUI\addObjectSections(), ilObjFileListGUI\getProperties(), ilObjFileGUI\infoScreen(), ilObjUserGUI\initForm(), ilDiskQuotaReminderMail\replacePlaceholders(), ilDiskQuotaSummaryNotification\send(), ilMailFormGUI\showForm(), and ilObjFileAccessSettingsGUI\viewDiskQuotaReport().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFormat::formatUnixTime | ( | $ut, | |
| $with_time = false | |||
| ) | 
Definition at line 473 of file class.ilFormat.php.
References $lng.
Referenced by ilPDFPresentation\__addMain(), ilPDFPresentation\__createObjectDetails(), ilECSSettingsGUI\exportImported(), ilECSSettingsGUI\exportReleased(), ilObjCourseGUI\printMembersObject(), and ilMemberExport\write().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFormat::fProzent | ( | ) | 
formatiert Prozentzahlen (Format: 00,00%).
Wenn nix oder eine Null bergeben wird, wird ein Leerzeichen zurckgegeben Wenn mehr als ein Parameter bergeben wird, wird die Ausgabe auch bei Wert Null erzwungen
Definition at line 245 of file class.ilFormat.php.
References $test.
| ilFormat::ftimestamp2dateDB | ( | $t | ) | 
formats timestamp to db-date
| string | 
Definition at line 170 of file class.ilFormat.php.
References $t.
Referenced by ilQuestionpoolExport\buildExportFileXLS().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFormat::ftimestamp2dateDE | ( | $t | ) | 
| ilFormat::ftimestamp2datetimeDB | ( | $aTimestamp | ) | 
Timestamp to database datetime.
| string | $aTimestamp | String in timestamp format | 
Definition at line 181 of file class.ilFormat.php.
Referenced by ilTestOutputGUI\endingTimeReached(), and ilObjTest\isExecutable().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFormat::ftimestamp2datetimeDE | ( | $t | ) | 
| ilFormat::getDateDE | ( | ) | 
Definition at line 30 of file class.ilFormat.php.
| ilFormat::ilFormat | ( | ) | 
Definition at line 24 of file class.ilFormat.php.
| ilFormat::input2date | ( | $AInputDate | ) | 
Prft eingegebes Datum und wandelt es in DB-konformen Syntax um Eingabe: TT.MM.JJJJ oder T.M.JJ oder TT.MM.JJJJ HH:MM:SS oder T.M.JJ HH:MM:SS Bei zweistelliger Jahresangabe wird bei YY > 70 19, bei YY < 70 20 vorgestellt Ausgabe: YYYY-MM-DD oder YYYY-MM-DD HH:MM:SS OPTIONAL wird die aktuelle Systemzeit hinzugefgt (Ausgabe: YYYY-MM-DD hh:mm:ss)
| string | 
Definition at line 45 of file class.ilFormat.php.
References $d.
| ilFormat::runden | ( | $value | ) | 
Floats auf 2 Nachkommastellen runden.
| float | 
Definition at line 266 of file class.ilFormat.php.
| ilFormat::unixtimestamp2datetime | ( | $a_unix_timestamp = "" | ) | 
Definition at line 417 of file class.ilFormat.php.
Referenced by ilSCORMCertificateAdapter\getCertificateVariablesForPresentation(), ilTestCertificateAdapter\getCertificateVariablesForPresentation(), ilSCORMCertificateAdapter\getCertificateVariablesForPreview(), ilTestCertificateAdapter\getCertificateVariablesForPreview(), and assFileUpload\getFileUploadZIPFile().
 Here is the caller graph for this function:
 Here is the caller graph for this function: