Completed
Push — master ( 477a35...b01591 )
by Zack
36:36 queued 19:52
created

GravityView_Field_Date_Updated::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @file class-gravityview-field-date-updated.php
4
 * @package GravityView
5
 * @subpackage includes\fields
6
 */
7
8
class GravityView_Field_Date_Updated extends GravityView_Field_Date_Created {
9
10
	var $name = 'date_updated';
11
12
	var $_custom_merge_tag = 'date_updated';
13
14
	/**
15
	 * GravityView_Field_Date_Updated constructor.
16
	 */
17
	public function __construct() {
18
		parent::__construct();
19
20
		$this->label = esc_html__( 'Date Updated', 'gravityview' );
21
		$this->default_search_label = $this->label;
22
		$this->description = esc_html__( 'The date the entry was last updated.', 'gravityview' );
23
	}
24
}
25
26
new GravityView_Field_Date_Updated;
27