Completed
Push — milestone/2_0/react-ui ( 50361a...b4837a )
by
unknown
03:06
created

Time_Field::set_picker_options()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Carbon_Fields\Field;
4
5
/**
6
 * Time picker field class.
7
 */
8
class Time_Field extends Date_Field {
9
10
	/**
11
	 * {@inheritDoc}
12
	 */
13
	protected $picker_options = array(
14
		'allowInput' => true,
15
		'enableTime' => true,
16
		'noCalendar' => true,
17
	);
18
19
	/**
20
	 * {@inheritDoc}
21
	 */
22
	protected $storage_format = 'H:i:s';
23
24
	/**
25
	 * {@inheritDoc}
26
	 */
27
	protected $input_format_php = 'h:i A';
28
29
	/**
30
	 * {@inheritDoc}
31
	 */
32
	protected $input_format_js = 'h:i K';
33
}
34