XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
RMTimeFormatter Class Reference

Public Member Functions

 __construct ($time=0, $format='')
 
 days ($time=0)
 
 format ($time=0, $format='')
 
 get ()
 
 months ($time=0)
 

Private Attributes

 $format = ''
 
 $time = 0
 

Detailed Description

Definition at line 11 of file timeformatter.php.

Constructor & Destructor Documentation

RMTimeFormatter::__construct (   $time = 0,
  $format = '' 
)

Initialize this class

Parameters
intUnix timestamp
stringFormat for time (e.g. Created on M% d%, Y%)
Returns
RMTimeFormater

Definition at line 23 of file timeformatter.php.

References $format, $time, and format().

Here is the call graph for this function:

Member Function Documentation

RMTimeFormatter::days (   $time = 0)

Day name for time formatting

Parameters
int$time
Returns
string Day name

Definition at line 87 of file timeformatter.php.

References $time, and __().

Referenced by format().

Here is the call graph for this function:

Here is the caller graph for this function:

RMTimeFormatter::format (   $time = 0,
  $format = '' 
)

Definition at line 41 of file timeformatter.php.

References $format, $time, __(), days(), and months().

Referenced by __construct().

Here is the call graph for this function:

Here is the caller graph for this function:

RMTimeFormatter::get ( )

Singleton Method

Definition at line 31 of file timeformatter.php.

RMTimeFormatter::months (   $time = 0)

Definition at line 106 of file timeformatter.php.

References $time, and __().

Referenced by format().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

RMTimeFormatter::$format = ''
private

Definition at line 14 of file timeformatter.php.

Referenced by __construct(), and format().

RMTimeFormatter::$time = 0
private

Definition at line 13 of file timeformatter.php.

Referenced by __construct(), days(), format(), and months().


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