.

DBFieldTime Class Reference
[Model]

A time field. More...

Inheritance diagram for DBFieldTime:
DBFieldDateTime DBField IDBField IPolicyHolder

List of all members.

Public Member Functions

  format_select ()
  Allow replacements for field in select from clause.

Protected Member Functions

  format_date_value ($value)
  Formats a value for use in DB.
  get_db_now_constant ()
  Returns fucntion or constant to set current time in DB (like NOW() or CURRENT_TIMESTAMP).

Detailed Description

A time field.

Author:
Gerd Riesselmann

Definition at line 10 of file dbfield.time.cls.php.


Member Function Documentation

DBFieldTime::format_date_value ( value  )  [protected]

Formats a value for use in DB.

Parameters:
datetime  $value
Returns:
string

Reimplemented from DBFieldDateTime.

Definition at line 26 of file dbfield.time.cls.php.

00026                                                      {
00027                 return $this->quote(GyroDate::mysql_time($value, false));       
00028         }       
DBFieldTime::format_select (  ) 

Allow replacements for field in select from clause.

Reimplemented from DBFieldDateTime.

Definition at line 33 of file dbfield.time.cls.php.

00033                                         {
00034                 return 'TIME_TO_SEC(' . DBField::format_select() . ')'; 
00035         }
DBFieldTime::get_db_now_constant (  )  [protected]

Returns fucntion or constant to set current time in DB (like NOW() or CURRENT_TIMESTAMP).

Returns:
string

Reimplemented from DBFieldDateTime.

Definition at line 16 of file dbfield.time.cls.php.

00016                                                  {
00017                 return 'CURRENT_TIME';
00018         }

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