PHP Class Horde_Form_Type_date, horde

Inheritance: extends Horde_Form_Type
Mostra file Open project: horde/horde Class Usage Examples

Public Properties

Property Type Description
$_format

Public Methods

Method Description
about ( ) Return info about field type.
getAgo ( mixed $date ) : string
getFormattedTime ( $timestamp, $format = null, $showago = true )
init ( $format = '%a %d %B' )
isValid ( &$var, &$vars, $value, &$message )

Method Details

about() public method

Return info about field type.
public about ( )

getAgo() public method

public getAgo ( mixed $date ) : string
$date mixed The date to calculate the difference from. Can be either a timestamp integer value, or an array with date parts: 'day', 'month', 'year'.
return string

getFormattedTime() public method

public getFormattedTime ( $timestamp, $format = null, $showago = true )

init() public method

public init ( $format = '%a %d %B' )

isValid() public method

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

Property Details

$_format public_oe property

public $_format