PHP Класс PodsField_Time, pods

Наследование: extends PodsField
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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