PHP Class Horde_Form_Type_hourminutesecond, horde

Inheritance: extends Horde_Form_Type
Datei anzeigen Open project: horde/horde

Public Properties

Property Type Description
$_show_seconds

Public Methods

Method Description
about ( ) Return info about field type.
checktime ( $hour, $minute, $second )
emptyTimeArray ( $time )
getTimeOb ( string $time_in ) : Horde_Date Return the time supplied as a Horde_Date object.
getTimeParts ( string $time_in ) : array Return the time supplied split up into an array.
init ( $show_seconds = false )
isValid ( &$var, &$vars, $value, &$message )

Method Details

about() public method

Return info about field type.
public about ( )

checktime() public method

public checktime ( $hour, $minute, $second )

emptyTimeArray() public method

public emptyTimeArray ( $time )

getTimeOb() public method

Return the time supplied as a Horde_Date object.
public getTimeOb ( string $time_in ) : Horde_Date
$time_in string Date in one of the three formats supported by Horde_Form and Horde_Date (ISO format YYYY-MM-DD HH:MM:SS, timestamp YYYYMMDDHHMMSS and UNIX epoch).
return Horde_Date The time object.

getTimeParts() public method

Return the time supplied split up into an array.
public getTimeParts ( string $time_in ) : array
$time_in string Time in one of the three formats supported by Horde_Form and Horde_Date (ISO format YYYY-MM-DD HH:MM:SS, timestamp YYYYMMDDHHMMSS and UNIX epoch).
return array Array with three elements - hour, minute and seconds.

init() public method

public init ( $show_seconds = false )

isValid() public method

public isValid ( &$var, &$vars, $value, &$message )

Property Details

$_show_seconds public_oe property

public $_show_seconds