1 | <?php |
||
8 | class GravityView_Field_Password extends GravityView_Field { |
||
9 | |||
10 | var $name = 'password'; |
||
11 | |||
12 | var $is_searchable = false; |
||
13 | |||
14 | /** @see GF_Field_Password */ |
||
15 | var $_gf_field_class_name = 'GF_Field_Password'; |
||
16 | |||
17 | var $group = 'advanced'; |
||
18 | |||
19 | public function __construct() { |
||
28 | |||
29 | /** |
||
30 | * Filter the value of the field, future. |
||
31 | * |
||
32 | * @since 2.0 |
||
33 | * |
||
34 | * @param mixed $value The value of the field. |
||
35 | * @param \GV\Field $field The field as seen by future. |
||
36 | * @param \GV\View $view The view requested in. |
||
37 | * @param \GV\Source $source The data source (form). |
||
38 | * @param \GV\Entry $entry The entry. |
||
39 | * @param \GV\Request $request The request context. |
||
40 | * |
||
41 | * @return mixed $value The filtered value. |
||
42 | */ |
||
43 | 1 | public function get_value( $value, $field, $view, $source, $entry, $request ) { |
|
47 | |||
48 | |||
49 | /** |
||
50 | * Add filters to modify the front-end label and the Add Field label |
||
51 | * |
||
52 | * @since 1.17 |
||
53 | * |
||
54 | * @return void |
||
55 | */ |
||
56 | function add_hooks() { |
||
61 | |||
62 | /** |
||
63 | * Use the GV Admin Field label for the Password field instead of the per-input setting |
||
64 | * |
||
65 | * @since 1.17 |
||
66 | * |
||
67 | * @param string $label Field label HTML |
||
68 | * @param array $field GravityView field array |
||
69 | * @param array $form Gravity Forms form array |
||
70 | * @param array $entry Gravity Forms entry array |
||
71 | * |
||
72 | * @return string If a custom field label isn't set, return the field label for the password field |
||
73 | */ |
||
74 | 20 | function field_label( $label = '', $field = array(), $form = array(), $entry = array() ){ |
|
89 | |||
90 | /** |
||
91 | * If a form has list fields, add the columns to the field picker |
||
92 | * |
||
93 | * @since 1.17 |
||
94 | * |
||
95 | * @param array $fields Associative array of fields, with keys as field type |
||
96 | * @param array $form GF Form array |
||
97 | * @param bool $include_parent_field Whether to include the parent field when getting a field with inputs |
||
98 | * |
||
99 | * @return array $fields with list field columns added, if exist. Unmodified if form has no list fields. |
||
100 | */ |
||
101 | function add_form_fields( $fields = array(), $form = array(), $include_parent_field = true ) { |
||
127 | |||
128 | } |
||
129 | |||
131 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.