| [ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Date formatter This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
| File Size: | 371 lines (10 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
DateFormatter:: (9 methods):
__construct()
getInstance()
reformat()
replace()
formatDate()
getMonthRegex()
makeIsoMonth()
makeIsoYear()
makeNormalYear()
Class: DateFormatter - X-Ref
Date formatter, recognises dates in plain text and formats them according to user preferences.| __construct( Language $lang ) X-Ref |
param: Language $lang In which language to format the date |
| getInstance( $lang = null ) X-Ref |
| Get a DateFormatter object param: Language|string|null $lang In which language to format the date return: DateFormatter |
| reformat( $preference, $text, $options = array( 'linked' ) X-Ref |
param: string $preference User preference param: string $text Text to reformat param: array $options Array can contain 'linked' and/or 'match-whole' return: string |
| replace( $matches ) X-Ref |
param: array $matches return: string |
| formatDate( $bits, $link = true ) X-Ref |
param: array $bits param: bool $link return: string |
| getMonthRegex() X-Ref |
return: string |
| makeIsoMonth( $monthName ) X-Ref |
| Makes an ISO month, e.g. 02, from a month name param: string $monthName Month name return: string ISO month name |
| makeIsoYear( $year ) X-Ref |
param: string $year Year name return: string ISO year name |
| makeNormalYear( $iso ) X-Ref |
param: string $iso return: int|string |
| Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |