Time Class Reference
[Widely used base classes and interfaces]

Time's container and utilities. More...

Inheritance diagram for Time:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($input)
 getHour ()
 setHour ($hour)
 
Returns:
Time

 getMinute ()
 setMinute ($minute)
 
Returns:
Time

 getSecond ()
 setSecond ($second)
 
Returns:
Time

 toString ($delimiter= ':')
 HH:MM.
 toFullString ($delimiter= ':')
 HH:MM:SS.
 toMinutes ()
 toSeconds ()

Static Public Member Functions

static create ($input)
 
Returns:
Time


Private Member Functions

 doublize ($int)

Private Attributes

 $hour = 0
 $minute = 0
 $second = 0
 $string = null


Detailed Description

Time's container and utilities.

Definition at line 18 of file Time.class.php.


Constructor & Destructor Documentation

Time::__construct ( input  ) 

Definition at line 35 of file Time.class.php.

References setHour(), setMinute(), and setSecond().

Here is the call graph for this function:


Member Function Documentation

static Time::create ( input  )  [static]

Returns:
Time

Definition at line 29 of file Time.class.php.

Referenced by TimeList::stringToTimeList().

Time::getHour (  ) 

Definition at line 95 of file Time.class.php.

Time::setHour ( hour  ) 

Returns:
Time

Definition at line 103 of file Time.class.php.

References $hour, and Assert::isTrue().

Referenced by __construct().

Here is the call graph for this function:

Time::getMinute (  ) 

Definition at line 119 of file Time.class.php.

Time::setMinute ( minute  ) 

Returns:
Time

Definition at line 127 of file Time.class.php.

References $minute, and Assert::isTrue().

Referenced by __construct().

Here is the call graph for this function:

Time::getSecond (  ) 

Definition at line 144 of file Time.class.php.

Time::setSecond ( second  ) 

Returns:
Time

Definition at line 152 of file Time.class.php.

References $second, and Assert::isTrue().

Referenced by __construct().

Here is the call graph for this function:

Time::toString ( delimiter = ':'  ) 

HH:MM.

Definition at line 170 of file Time.class.php.

References doublize().

Here is the call graph for this function:

Time::toFullString ( delimiter = ':'  ) 

HH:MM:SS.

Definition at line 182 of file Time.class.php.

References doublize(), and Stringable::toString().

Here is the call graph for this function:

Time::toMinutes (  ) 

Definition at line 193 of file Time.class.php.

Time::toSeconds (  ) 

Definition at line 201 of file Time.class.php.

Referenced by PrimitiveTime::checkLimits().

Time::doublize ( int  )  [private]

Definition at line 209 of file Time.class.php.

Referenced by toFullString(), and toString().


Member Data Documentation

Time::$hour = 0 [private]

Definition at line 20 of file Time.class.php.

Referenced by setHour().

Time::$minute = 0 [private]

Definition at line 21 of file Time.class.php.

Referenced by setMinute().

Time::$second = 0 [private]

Definition at line 22 of file Time.class.php.

Referenced by setSecond().

Time::$string = null [private]

Definition at line 24 of file Time.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:36 2007 for onPHP by  doxygen 1.5.4