PHP 클래스 Symfony\Component\Form\TimeField

Available options: * widget: How to render the time field ("input" or "choice"). Default: "choice". * type: The type of the date stored on the object. Default: "datetime": * datetime: A DateTime object; * string: A raw string (e.g. 2011-05-01 12:30:00, Y-m-d H:i:s); * timestamp: A unix timestamp (e.g. 1304208000). * raw: An hour, minute, second array * with_seconds Whether or not to create a field for seconds. Default: false. * hours: An array of hours for the hour select tag. * minutes: An array of minutes for the minute select tag. * seconds: An array of seconds for the second select tag. * data_timezone: The timezone of the data. Default: UTC. * user_timezone: The timezone of the user entering a new value. Default: UTC.
상속: extends Form
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$types
$widgets

공개 메소드들

메소드 설명
isField ( )
isHourWithinRange ( ) : boolean Returns whether the hour of the field's data is valid
isMinuteWithinRange ( ) : boolean Returns whether the minute of the field's data is valid
isSecondWithinRange ( ) : boolean Returns whether the second of the field's data is valid
isWithSeconds ( )

보호된 메소드들

메소드 설명
configure ( ) {@inheritDoc}
generatePaddedChoices ( array $values, integer $padLength ) : array Generates an array of choices for the given values

메소드 상세

configure() 보호된 메소드

{@inheritDoc}
protected configure ( )

generatePaddedChoices() 보호된 메소드

If the values are shorter than $padLength characters, they are padded with zeros on the left side.
protected generatePaddedChoices ( array $values, integer $padLength ) : array
$values array The available choices
$padLength integer The length to pad the choices
리턴 array An array with the input values as keys and the padded values as values

isField() 공개 메소드

public isField ( )

isHourWithinRange() 공개 메소드

The hour is valid if it is contained in the list passed to the field's option "hours".
public isHourWithinRange ( ) : boolean
리턴 boolean

isMinuteWithinRange() 공개 메소드

The minute is valid if it is contained in the list passed to the field's option "minutes".
public isMinuteWithinRange ( ) : boolean
리턴 boolean

isSecondWithinRange() 공개 메소드

The second is valid if it is contained in the list passed to the field's option "seconds".
public isSecondWithinRange ( ) : boolean
리턴 boolean

isWithSeconds() 공개 메소드

public isWithSeconds ( )

프로퍼티 상세

$types 보호되어 있는 정적으로 프로퍼티

protected static $types

$widgets 보호되어 있는 정적으로 프로퍼티

protected static $widgets