1 | <?php |
||
17 | class GravityView_Delete_Entry_Admin { |
||
18 | |||
19 | protected $loader; |
||
20 | |||
21 | public function __construct( GravityView_Delete_Entry $loader ) { |
||
24 | |||
25 | public function load() { |
||
46 | |||
47 | /** |
||
48 | * Render Delete Entry View metabox settings |
||
49 | * |
||
50 | * @since 2.9.1 |
||
51 | * |
||
52 | * @param $current_settings |
||
53 | * |
||
54 | * @return void |
||
55 | */ |
||
56 | public function view_settings_metabox( $current_settings ) { |
||
62 | |||
63 | /** |
||
64 | * Change wording for the Edit context to read Entry Creator |
||
65 | * |
||
66 | * @since 1.5.1 |
||
67 | * @since 2.9.2 Moved here from GravityView_Delete_Entry |
||
68 | * |
||
69 | * @param array $visibility_caps Array of capabilities to display in field dropdown. |
||
70 | * @param string $field_type Type of field options to render (`field` or `widget`) |
||
|
|||
71 | * @param string $template_id Table slug |
||
72 | * @param float $field_id GF Field ID - Example: `3`, `5.2`, `entry_link`, `created_by` |
||
73 | * @param string $context What context are we in? Example: `single` or `directory` |
||
74 | * @param string $input_type (textarea, list, select, etc.) |
||
75 | * |
||
76 | * @return array Array of field options with `label`, `value`, `type`, `default` keys |
||
77 | */ |
||
78 | public function modify_visibility_caps( $visibility_caps = array(), $template_id = '', $field_id = '', $context = '', $input_type = '' ) { |
||
93 | |||
94 | /** |
||
95 | * Add "Delete Link Text" setting to the edit_link field settings |
||
96 | * |
||
97 | * @since 1.5.1 |
||
98 | * @since 2.9.2 Moved here from GravityView_Delete_Entry |
||
99 | * |
||
100 | * @param array $field_options |
||
101 | * @param string $template_id |
||
102 | * @param string $field_id |
||
103 | * @param string $context |
||
104 | * @param string $input_type |
||
105 | * |
||
106 | * @return array $field_options, with "Delete Link Text" and "Allow the following users to delete the entry:" field options. |
||
107 | */ |
||
108 | public function delete_link_field_options( $field_options, $template_id, $field_id, $context, $input_type ) { |
||
135 | |||
136 | |||
137 | /** |
||
138 | * Add Delete Entry Link to the Add Field dialog |
||
139 | * |
||
140 | * @since 1.5.1 |
||
141 | * @since 2.9.2 Moved here from GravityView_Delete_Entry |
||
142 | * |
||
143 | * @param array $available_fields |
||
144 | * |
||
145 | * @return array |
||
146 | */ |
||
147 | public function add_available_field( $available_fields = array() ) { |
||
160 | |||
161 | /** |
||
162 | * Render Delete Entry Permissions settings |
||
163 | * |
||
164 | * @since 2.9.2 |
||
165 | * |
||
166 | * @param $current_settings |
||
167 | * |
||
168 | * @return void |
||
169 | */ |
||
170 | public function view_settings_delete_entry_metabox( $current_settings ) { |
||
175 | |||
176 | /** |
||
177 | * Add Edit Link as a default field, outside those set in the Gravity Form form |
||
178 | * |
||
179 | * @since 1.5.1 |
||
180 | * @since 2.9.2 Moved here from GravityView_Delete_Entry |
||
181 | * |
||
182 | * @param array $entry_default_fields Existing fields |
||
183 | * @param string|array $form form_ID or form object |
||
184 | * @param string $zone Either 'single', 'directory', 'edit', 'header', 'footer' |
||
185 | * |
||
186 | * @return array |
||
187 | */ |
||
188 | public function add_default_field( $entry_default_fields, $form = array(), $zone = '' ) { |
||
200 | } |
||
201 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.