XOOPS 2.5.6
Final
|
Public Member Functions | |
__call ($name, $args) | |
convert_encoding ($text, $to= 'utf-8', $from= '') | |
formatTimestamp ($time, $format= 'l', $timeoffset=null) | |
getTimeFormatDesc () | |
money_format ($format, $number) | |
number_format ($number) | |
substr ($str, $start, $length, $trimmarker= '...') | |
trim ($text) | |
utf8_encode ($text) | |
Definition at line 22 of file xoopslocal.php.
XoopsLocalAbstract::__call | ( | $name, | |
$args | |||
) |
XoopsLocalAbstract::convert_encoding | ( | $text, | |
$to = 'utf-8' , |
|||
$from = '' |
|||
) |
XoopsLocalAbstract::convert_encoding()
mixed | $text | |
string | $to | |
string | $from |
Definition at line 70 of file xoopslocal.php.
References $GLOBALS, _CHARSET, and XOOPS_USE_MULTIBYTES.
Referenced by MytsWiki\decode().
XoopsLocalAbstract::formatTimestamp | ( | $time, | |
$format = 'l' , |
|||
$timeoffset = null |
|||
) |
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
Definition at line 118 of file xoopslocal.php.
References $date, $GLOBALS, $num, $ret, $time, $xoopsConfig, $xoopsUser, _DATESTRING, _DAY, _DAYS, _ELAPSE, _HOUR, _HOURS, _MEDIUMDATESTRING, _MINUTE, _MINUTES, _MONTHDAY, _SECOND, _SECONDS, _SHORTDATESTRING, _TODAY, _YEARMONTHDAY, _YESTERDAY, and xoops_getUserTimestamp().
Referenced by formatTimestamp().
XoopsLocalAbstract::getTimeFormatDesc | ( | ) |
Get description for setting time format
Definition at line 108 of file xoopslocal.php.
References _TIMEFORMAT_DESC.
XoopsLocalAbstract::money_format | ( | $format, | |
$number | |||
) |
XoopsLocalAbstract::money_format()
mixed | $format | |
mixed | $number |
Definition at line 229 of file xoopslocal.php.
XoopsLocalAbstract::number_format | ( | $number | ) |
XoopsLocalAbstract::number_format()
mixed | $number |
Definition at line 217 of file xoopslocal.php.
XoopsLocalAbstract::substr | ( | $str, | |
$start, | |||
$length, | |||
$trimmarker = '...' |
|||
) |
mixed | $str | |
mixed | $start | |
mixed | $length | |
string | $trimmarker |
Definition at line 33 of file xoopslocal.php.
References $start, _CHARSET, and XOOPS_USE_MULTIBYTES.
Referenced by xoops_substr().
XoopsLocalAbstract::trim | ( | $text | ) |
mixed | $text |
Definition at line 99 of file xoopslocal.php.
References $ret.
Referenced by xoops_trim().
XoopsLocalAbstract::utf8_encode | ( | $text | ) |
XoopsLocalAbstract::utf8_encode()
mixed | $text |
Definition at line 52 of file xoopslocal.php.
References XOOPS_USE_MULTIBYTES.
Referenced by xoops_utf8_encode().