PHP 클래스 PodsField_Time, pods

상속: extends PodsField
파일 보기 프로젝트 열기: pods-framework/pods

공개 프로퍼티들

프로퍼티 타입 설명
$group string Field Type Group
$label string Field Type Label
$prepare string Field Type Preparation
$type string Field Type Identifier

공개 메소드들

메소드 설명
__construct ( ) Do things like register/enqueue scripts and stylesheets
convert_date ( $value, $new_format, $original_format = 'H:i:s' ) Convert a date from one format to another
createFromFormat ( $format, $date ) : DateTime
display ( mixed $value = null, string $name = null, array $options = null, array $pod = null, integer $id = null ) : mixed | null | string Change the way the value of the field is displayed with Pods::get
format ( $options ) : string Build date/time format string based on options
input ( string $name, mixed $value = null, array $options = null, array $pod = null, integer $id = null ) Customize output of the form field
options ( ) : array Add options and set defaults to
pre_save ( mixed $value, integer $id = null, string $name = null, array $options = null, array $fields = null, array $pod = null, object $params = null ) : mixed | string Change the value or perform actions after validation but before saving to the DB
schema ( array $options = null ) : array Define the current field's schema for DB table storage
ui ( integer $id, mixed $value, string $name = null, array $options = null, array $fields = null, array $pod = null ) : mixed | null | string Customize the Pods UI manage table column output

메소드 상세

__construct() 공개 메소드

Do things like register/enqueue scripts and stylesheets
부터: 2.0
public __construct ( )

convert_date() 공개 메소드

Convert a date from one format to another
public convert_date ( $value, $new_format, $original_format = 'H:i:s' )
$new_format
$original_format

createFromFormat() 공개 메소드

public createFromFormat ( $format, $date ) : DateTime
$format
$date
리턴 DateTime

display() 공개 메소드

Change the way the value of the field is displayed with Pods::get
부터: 2.0
public display ( mixed $value = null, string $name = null, array $options = null, array $pod = null, integer $id = null ) : mixed | null | string
$value mixed
$name string
$options array
$pod array
$id integer
리턴 mixed | null | string

format() 공개 메소드

Build date/time format string based on options
부터: 2.0
public format ( $options ) : string
$options
리턴 string

input() 공개 메소드

Customize output of the form field
부터: 2.0
public input ( string $name, mixed $value = null, array $options = null, array $pod = null, integer $id = null )
$name string
$value mixed
$options array
$pod array
$id integer

options() 공개 메소드

Add options and set defaults to
부터: 2.0
public options ( ) : array
리턴 array

pre_save() 공개 메소드

Change the value or perform actions after validation but before saving to the DB
부터: 2.0
public pre_save ( mixed $value, integer $id = null, string $name = null, array $options = null, array $fields = null, array $pod = null, object $params = null ) : mixed | string
$value mixed
$id integer
$name string
$options array
$fields array
$pod array
$params object
리턴 mixed | string

schema() 공개 메소드

Define the current field's schema for DB table storage
부터: 2.0
public schema ( array $options = null ) : array
$options array
리턴 array

ui() 공개 메소드

Customize the Pods UI manage table column output
부터: 2.0
public ui ( integer $id, mixed $value, string $name = null, array $options = null, array $fields = null, array $pod = null ) : mixed | null | string
$id integer
$value mixed
$name string
$options array
$fields array
$pod array
리턴 mixed | null | string

프로퍼티 상세

$group 공개적으로 정적으로 프로퍼티

Field Type Group
부터: 2.0
public static string $group
리턴 string

$label 공개적으로 정적으로 프로퍼티

Field Type Label
부터: 2.0
public static string $label
리턴 string

$prepare 공개적으로 정적으로 프로퍼티

Field Type Preparation
부터: 2.0
public static string $prepare
리턴 string

$type 공개적으로 정적으로 프로퍼티

Field Type Identifier
부터: 2.0
public static string $type
리턴 string