1 | <?php |
||
17 | class GravityView_Edit_Entry_Admin { |
||
18 | |||
19 | protected $loader; |
||
20 | |||
21 | function __construct( GravityView_Edit_Entry $loader ) { |
||
24 | |||
25 | function load() { |
||
49 | |||
50 | /** |
||
51 | * Render Edit Entry View metabox settings |
||
52 | * |
||
53 | * @since 2.9 |
||
54 | * |
||
55 | * @param $current_settings |
||
56 | * |
||
57 | * @return void |
||
58 | */ |
||
59 | public function view_settings_metabox( $current_settings ) { |
||
71 | |||
72 | /** |
||
73 | * Add Edit Link as a default field, outside those set in the Gravity Form form |
||
74 | * @param array $entry_default_fields Existing fields |
||
75 | * @param string|array $form form_ID or form object |
||
76 | * @param string $zone Either 'single', 'directory', 'header', 'footer' |
||
77 | */ |
||
78 | function add_default_field( $entry_default_fields, $form = array(), $zone = '' ) { |
||
92 | |||
93 | /** |
||
94 | * Change wording for the Edit context to read Entry Creator |
||
95 | * |
||
96 | * @param array $visibility_caps Array of capabilities to display in field dropdown. |
||
97 | * @param string $field_type Type of field options to render (`field` or `widget`) |
||
98 | * @param string $template_id Table slug |
||
99 | * @param float $field_id GF Field ID - Example: `3`, `5.2`, `entry_link`, `created_by` |
||
100 | * @param string $context What context are we in? Example: `single` or `directory` |
||
101 | * @param string $input_type (textarea, list, select, etc.) |
||
102 | * @return array Array of field options with `label`, `value`, `type`, `default` keys |
||
103 | */ |
||
104 | function modify_visibility_caps( $visibility_caps = array(), $template_id = '', $field_id = '', $context = '', $input_type = '' ) { |
||
119 | |||
120 | /** |
||
121 | * Add "Edit Link Text" setting to the edit_link field settings |
||
122 | * @param [type] $field_options [description] |
||
123 | * @param [type] $template_id [description] |
||
124 | * @param [type] $field_id [description] |
||
125 | * @param [type] $context [description] |
||
126 | * @param [type] $input_type [description] |
||
127 | * @return [type] [description] |
||
128 | */ |
||
129 | function edit_link_field_options( $field_options, $template_id, $field_id, $context, $input_type ) { |
||
147 | |||
148 | /** |
||
149 | * Add tooltips |
||
150 | * @param array $tooltips Existing tooltips |
||
151 | * @return array Modified tooltips |
||
152 | */ |
||
153 | function tooltips( $tooltips ) { |
||
164 | |||
165 | /** |
||
166 | * Manipulate the fields' options for the EDIT ENTRY screen |
||
167 | * @param [type] $field_options [description] |
||
168 | * @param [type] $template_id [description] |
||
169 | * @param [type] $field_id [description] |
||
170 | * @param [type] $context [description] |
||
171 | * @param [type] $input_type [description] |
||
172 | * @return [type] [description] |
||
173 | */ |
||
174 | public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) { |
||
207 | |||
208 | |||
209 | } // end class |
||
210 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.