Definition at line 23 of file Abstract.php.
static Xoops_Locale_Abstract::convert_encoding |
( |
|
$text, |
|
|
|
$to = 'utf-8' , |
|
|
|
$from = '' |
|
) |
| |
|
static |
static Xoops_Locale_Abstract::formatTimestamp |
( |
|
$time, |
|
|
|
$format = 'l' , |
|
|
|
$timeoffset = null |
|
) |
| |
|
static |
Function to display formatted times in user timezone Setting $timeoffset to null (by default) will skip timezone calculation for user, using default timezone instead, which is a MUST for cached contents
- Parameters
-
| $time | |
string | $format | |
string | $timeoffset | |
- Returns
- string
Definition at line 289 of file Abstract.php.
References $xoops, getFormatToday(), getFormatYesterday(), Xoops\getInstance(), XoopsLocaleEn_US\LF_AGO_DAYS, XoopsLocaleEn_US\LF_AGO_HOURS, XoopsLocaleEn_US\LF_AGO_MINUTES, XoopsLocaleEn_US\LF_AGO_ONE_DAY, XoopsLocaleEn_US\LF_AGO_ONE_HOUR, XoopsLocaleEn_US\LF_AGO_ONE_MINUTE, XoopsLocaleEn_US\LF_AGO_ONE_SECOND, and XoopsLocaleEn_US\LF_AGO_SECONDS.
Referenced by CommentsCommentRenderer\_getPosterArray(), CommentsCommentRenderer\_renderNestReplies(), CommentsCommentRenderer\_renderThreadReplies(), b_comments_show(), b_system_newmembers_show(), SystemExtension\getExtensionList(), SystemModule\getModuleList(), Xmf\Template\Feed\init(), Xoops\Module\Admin\renderAbout(), CommentsCommentRenderer\renderFlatView(), Comments\renderHeader(), CommentsCommentRenderer\renderNestView(), and CommentsCommentRenderer\renderThreadView().
static Xoops_Locale_Abstract::getAdminRssUrls |
( |
| ) |
|
|
static |
static Xoops_Locale_Abstract::getCharset |
( |
| ) |
|
|
static |
- Returns
- string
Definition at line 52 of file Abstract.php.
Referenced by XoopsMailerLocal\__construct(), Xoops_Locale_Mailer_Abstract\__construct(), XoopsTpl\__construct(), buildRssFeedCache(), convert_encoding(), LegacyLogger\dump(), Xoops\footer(), MytsSyntaxhighlight\geshi(), XoopsFormTinymce\getLanguage(), MyTextSanitizer\htmlSpecialChars(), Xmf\Template\Feed\init(), and Xoops\simpleHeader().
static Xoops_Locale_Abstract::getFonts |
( |
| ) |
|
|
static |
static Xoops_Locale_Abstract::getFontSizes |
( |
| ) |
|
|
static |
static Xoops_Locale_Abstract::getFormatLongDate |
( |
| ) |
|
|
static |
static Xoops_Locale_Abstract::getFormatMediumDate |
( |
| ) |
|
|
static |
static Xoops_Locale_Abstract::getFormatMonthDay |
( |
| ) |
|
|
static |
static Xoops_Locale_Abstract::getFormatShortDate |
( |
| ) |
|
|
static |
static Xoops_Locale_Abstract::getFormatToday |
( |
| ) |
|
|
static |
!!IMPORTANT!! insert "\" before any char among reserved chars: "a = "A = "B = "c = "d = "D = "F = "g = "G = "h = "H = "i = "I = "j = "l = "L = "m = "M = "n = "O = "r = "s = "S = "t = "T = "U = "w = "W = "Y = "y = "z = "Z"
insert double "" before these characters: e, f, n, r, t, v, \, ", $
Definition at line 133 of file Abstract.php.
Referenced by formatTimestamp().
static Xoops_Locale_Abstract::getFormatYearMonthDay |
( |
| ) |
|
|
static |
static Xoops_Locale_Abstract::getFormatYesterday |
( |
| ) |
|
|
static |
static Xoops_Locale_Abstract::getLangCode |
( |
| ) |
|
|
static |
static Xoops_Locale_Abstract::getLegacyLanguage |
( |
| ) |
|
|
static |
static Xoops_Locale_Abstract::getLocale |
( |
| ) |
|
|
static |
static Xoops_Locale_Abstract::getTimezone |
( |
| ) |
|
|
static |
static Xoops_Locale_Abstract::isMultiByte |
( |
| ) |
|
|
static |
static Xoops_Locale_Abstract::isRtl |
( |
| ) |
|
|
static |
static Xoops_Locale_Abstract::money_format |
( |
|
$format, |
|
|
|
$number |
|
) |
| |
|
static |
- Parameters
-
string | $format | |
string | $number | |
- Returns
- string
Definition at line 398 of file Abstract.php.
References $result.
static Xoops_Locale_Abstract::number_format |
( |
|
$number | ) |
|
|
static |
static Xoops_Locale_Abstract::setLocale |
( |
| ) |
|
|
static |
todo, do not forget to set this on locale load
Definition at line 44 of file Abstract.php.
static Xoops_Locale_Abstract::substr |
( |
|
$str, |
|
|
|
$start, |
|
|
|
$length, |
|
|
|
$trimmarker = '...' |
|
) |
| |
|
static |
static Xoops_Locale_Abstract::trim |
( |
|
$text | ) |
|
|
static |
static Xoops_Locale_Abstract::utf8_encode |
( |
|
$text | ) |
|
|
static |
The documentation for this class was generated from the following file: