XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
XoopsLocalAbstract Class Reference
Inheritance diagram for XoopsLocalAbstract:
Inheritance graph

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)
 

Detailed Description

Definition at line 22 of file xoopslocal.php.

Member Function Documentation

XoopsLocalAbstract::__call (   $name,
  $args 
)

XoopsLocalAbstract::__call()

Parameters
mixed$name
mixed$args
Returns

Definition at line 241 of file xoopslocal.php.

XoopsLocalAbstract::convert_encoding (   $text,
  $to = 'utf-8',
  $from = '' 
)

XoopsLocalAbstract::convert_encoding()

Parameters
mixed$text
string$to
string$from
Returns

Definition at line 70 of file xoopslocal.php.

References $GLOBALS, _CHARSET, and XOOPS_USE_MULTIBYTES.

Referenced by MytsWiki\decode().

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters
mixed$format
mixed$number
Returns

Definition at line 229 of file xoopslocal.php.

XoopsLocalAbstract::number_format (   $number)

XoopsLocalAbstract::number_format()

Parameters
mixed$number
Returns

Definition at line 217 of file xoopslocal.php.

XoopsLocalAbstract::substr (   $str,
  $start,
  $length,
  $trimmarker = '...' 
)

XoopsLocalAbstract::substr()

Parameters
mixed$str
mixed$start
mixed$length
string$trimmarker
Returns

Definition at line 33 of file xoopslocal.php.

References $start, _CHARSET, and XOOPS_USE_MULTIBYTES.

Referenced by xoops_substr().

Here is the caller graph for this function:

XoopsLocalAbstract::trim (   $text)

XoopsLocalAbstract::trim()

Parameters
mixed$text
Returns

Definition at line 99 of file xoopslocal.php.

References $ret.

Referenced by xoops_trim().

Here is the caller graph for this function:

XoopsLocalAbstract::utf8_encode (   $text)

XoopsLocalAbstract::utf8_encode()

Parameters
mixed$text
Returns

Definition at line 52 of file xoopslocal.php.

References XOOPS_USE_MULTIBYTES.

Referenced by xoops_utf8_encode().

Here is the caller graph for this function:


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