GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
includes
fields
class-gravityview-field-quantity.php
Go to the documentation of this file.
1
<?php
2
/**
3
* @file class-gravityview-field-quantity.php
4
* @package GravityView
5
* @subpackage includes\fields
6
* @since 2.17
7
*/
8
9
/**
10
* @since 2.17
11
*/
12
class
GravityView_Field_Quantity
extends
GravityView_Field
{
13
14
var
$name
=
'quantity'
;
15
16
var
$is_searchable
=
true
;
17
18
var
$is_numeric
=
false
;
19
20
var
$search_operators
= array(
'is'
,
'isnot'
,
'greater_than'
,
'less_than'
);
21
22
var
$group
=
'product'
;
23
24
var
$icon
=
'dashicons-cart'
;
25
26
/** @see GF_Field_Quantity */
27
var
$_gf_field_class_name
=
'GF_Field_Quantity'
;
28
29
public
function
__construct
() {
30
$this->label = esc_html__(
'Quantity'
,
'gk-gravityview'
);
31
$this->
description
= esc_html__(
'The quantity of a specific product field.'
,
'gk-gravityview'
);
32
parent::__construct();
33
}
34
}
35
36
new
GravityView_Field_Quantity
;
GravityView_Field
Modify field settings by extending this class.
Definition:
class-gravityview-field.php:11
GravityView_Field_Quantity
new GravityView_Field_Quantity
Definition:
class-gravityview-field-quantity.php:36
GravityView_Field_Quantity\$is_numeric
$is_numeric
Definition:
class-gravityview-field-quantity.php:18
GravityView_Field_Quantity
Definition:
class-gravityview-field-quantity.php:12
GV\description
scale description p description
Definition:
class-gv-settings-plugin.php:405
GravityView_Field_Quantity\$search_operators
$search_operators
Definition:
class-gravityview-field-quantity.php:20
GravityView_Field_Quantity\$name
$name
Definition:
class-gravityview-field-quantity.php:14
GravityView_Field_Quantity\$group
$group
Definition:
class-gravityview-field-quantity.php:22
GravityView_Field_Quantity\$icon
$icon
Definition:
class-gravityview-field-quantity.php:24
GravityView_Field_Quantity\$is_searchable
$is_searchable
Definition:
class-gravityview-field-quantity.php:16
GravityView_Field_Quantity\$_gf_field_class_name
$_gf_field_class_name
Definition:
class-gravityview-field-quantity.php:27
GravityView_Field_Quantity\__construct
__construct()
Definition:
class-gravityview-field-quantity.php:29