XOOPS  2.6.0
Xoops_Locale_Abstract Class Reference
Inheritance diagram for Xoops_Locale_Abstract:
Inheritance graph

Static Public Member Functions

static convert_encoding ($text, $to= 'utf-8', $from= '')
 
static formatTimestamp ($time, $format= 'l', $timeoffset=null)
 
static getAdminRssUrls ()
 
static getCharset ()
 
static getFonts ()
 
static getFontSizes ()
 
static getFormatLongDate ()
 
static getFormatMediumDate ()
 
static getFormatMonthDay ()
 
static getFormatShortDate ()
 
static getFormatToday ()
 
static getFormatYearMonthDay ()
 
static getFormatYesterday ()
 
static getLangCode ()
 
static getLegacyLanguage ()
 
static getLocale ()
 
static getTimezone ()
 
static isMultiByte ()
 
static isRtl ()
 
static money_format ($format, $number)
 
static number_format ($number)
 
static setLocale ()
 
static substr ($str, $start, $length, $trimmarker= '...')
 
static trim ($text)
 
static utf8_encode ($text)
 

Detailed Description

Definition at line 23 of file Abstract.php.

Member Function Documentation

static Xoops_Locale_Abstract::convert_encoding (   $text,
  $to = 'utf-8',
  $from = '' 
)
static
Parameters
mixed$text
string$to
string$from
Returns
string

Definition at line 235 of file Abstract.php.

References $text, $xoops, getCharset(), Xoops\getInstance(), and utf8_encode().

Referenced by buildRssFeedCache(), and MytsWiki\decode().

Here is the call graph for this function:

Here is the caller graph for this function:

static Xoops_Locale_Abstract::formatTimestamp (   $time,
  $format = 'l',
  $timeoffset = null 
)
static
static Xoops_Locale_Abstract::getAdminRssUrls ( )
static
Returns
string[]

Definition at line 124 of file Abstract.php.

static Xoops_Locale_Abstract::getFonts ( )
static
Returns
string[]

Definition at line 92 of file Abstract.php.

Referenced by Xoops\Form\DhtmlTextArea\fontArray().

Here is the caller graph for this function:

static Xoops_Locale_Abstract::getFontSizes ( )
static
Returns
array

Definition at line 108 of file Abstract.php.

Referenced by Xoops\Form\DhtmlTextArea\fontArray().

Here is the caller graph for this function:

static Xoops_Locale_Abstract::getFormatLongDate ( )
static
Returns
string

Definition at line 165 of file Abstract.php.

static Xoops_Locale_Abstract::getFormatMediumDate ( )
static
Returns
string

Definition at line 173 of file Abstract.php.

static Xoops_Locale_Abstract::getFormatMonthDay ( )
static
Returns
string

Definition at line 149 of file Abstract.php.

static Xoops_Locale_Abstract::getFormatShortDate ( )
static
Returns
string

Definition at line 181 of file Abstract.php.

Referenced by Xmf\Template\Feed\init(), and Xoops\Form\DateSelect\render().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

static Xoops_Locale_Abstract::getFormatYearMonthDay ( )
static
Returns
string

Definition at line 157 of file Abstract.php.

static Xoops_Locale_Abstract::getFormatYesterday ( )
static
Returns
string

Definition at line 141 of file Abstract.php.

Referenced by formatTimestamp().

Here is the caller graph for this function:

static Xoops_Locale_Abstract::getLangCode ( )
static
Returns
string

Definition at line 68 of file Abstract.php.

Referenced by XoopsTpl\__construct(), LegacyLogger\dump(), XoopsFormTinymce\getLanguage(), Xmf\Template\Feed\init(), and Xoops\simpleHeader().

Here is the caller graph for this function:

static Xoops_Locale_Abstract::getLegacyLanguage ( )
static
Returns
string

Definition at line 76 of file Abstract.php.

Referenced by XoopsEditorHandler\_loadEditor(), XoopsEditorHandler\buildEditorList(), Xoops_Locale\loadLanguage(), MenusDecoratorAbstract\loadLanguage(), and Xoops\loadLanguage().

Here is the caller graph for this function:

static Xoops_Locale_Abstract::getLocale ( )
static
Returns
string

Definition at line 60 of file Abstract.php.

Referenced by XoopsTheme\getLocalizationAssets().

Here is the caller graph for this function:

static Xoops_Locale_Abstract::getTimezone ( )
static
Returns
string

Definition at line 84 of file Abstract.php.

static Xoops_Locale_Abstract::isMultiByte ( )
static
Returns
bool

Definition at line 28 of file Abstract.php.

static Xoops_Locale_Abstract::isRtl ( )
static
Returns
bool

Definition at line 36 of file Abstract.php.

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
Parameters
int$number
Returns
string

Definition at line 387 of file Abstract.php.

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
Parameters
mixed$str
integer$start
integer$length
string$trimmarker
Returns
string

Definition at line 194 of file Abstract.php.

References $start.

Referenced by Comments\displayNew(), and Comments\displayReply().

Here is the caller graph for this function:

static Xoops_Locale_Abstract::trim (   $text)
static

XoopsLocalAbstract::trim()

Parameters
mixed$text
Returns
string

Definition at line 272 of file Abstract.php.

References $text.

Referenced by Comments\displayPost(), and XoopsUserUtility\validate().

Here is the caller graph for this function:

static Xoops_Locale_Abstract::utf8_encode (   $text)
static

Each local language should define its own equivalent utf8_encode

Parameters
mixed$text
Returns
string

Definition at line 217 of file Abstract.php.

References $text.

Referenced by convert_encoding().

Here is the caller graph for this function:


The documentation for this class was generated from the following file: