PHP Class Horde_Form_Type_date, horde

Inheritance: extends Horde_Form_Type
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Свойство Type Description
$_format

Méthodes publiques

Méthode 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 méthode

Return info about field type.
public about ( )

getAgo() public méthode

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'.
Résultat string

getFormattedTime() public méthode

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

init() public méthode

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

isValid() public méthode

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

Property Details

$_format public_oe property

public $_format