GF_REST_Form_Feeds_Controller
Source: includes/webapi/v2/includes/controllers/class-controller-form-feeds.php:7
Details
- Kind:
class - Namespace:
(global) - Extends: GF_REST_Controller
Properties
| Property | Type | Description |
|---|---|---|
$rest_base | string |
Methods
| Method | Description |
|---|---|
register_routes() | Register the routes for the objects of the controller. |
get_items() | Get a collection of feeds for the form. |
create_item() | Create one feed for the form. |
prepare_item_for_response() | Prepare the item for the REST response. |
get_items_permissions_check() | Check if a given request has access to get items |
create_item_permissions_check() | Check if a given request has access to create items |
get_collection_params() | Get the query params for collections |
get_item_schema() | Get the Feed schema, conforming to JSON Schema. |
Method Reference
register_routes()
public function register_routes()
Register the routes for the objects of the controller.
Since: 2.4
Source: includes/webapi/v2/includes/controllers/class-controller-form-feeds.php:21
get_items()
public function get_items( $request )
Get a collection of feeds for the form.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$request | WP_REST_Request | Full data about the request. |
Returns
Since: 2.4
Source: includes/webapi/v2/includes/controllers/class-controller-form-feeds.php:52
create_item()
public function create_item( $request )
Create one feed for the form.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$request | WP_REST_Request | Full data about the request. |
Returns
Since: 2.4
Source: includes/webapi/v2/includes/controllers/class-controller-form-feeds.php:85
prepare_item_for_response()
public function prepare_item_for_response( $item, $request )
Prepare the item for the REST response.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$item | mixed | WordPress representation of the item. | |
$request | WP_REST_Request | Request object. |
Returns
- WP_REST_Response — $response
Since: 2.4
Source: includes/webapi/v2/includes/controllers/class-controller-form-feeds.php:126
get_items_permissions_check()
public function get_items_permissions_check( $request )
Check if a given request has access to get items
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$request | WP_REST_Request | Full data about the request. |
Returns
- WP_Error |
bool
Since: 2.4
Source: includes/webapi/v2/includes/controllers/class-controller-form-feeds.php:139
create_item_permissions_check()
public function create_item_permissions_check( $request )
Check if a given request has access to create items
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$request | WP_REST_Request | Full data about the request. |
Returns
- WP_Error |
bool
Since: 2.4
Source: includes/webapi/v2/includes/controllers/class-controller-form-feeds.php:163
get_collection_params()
public function get_collection_params()
Get the query params for collections
Returns
array
Since: 2.4
Source: includes/webapi/v2/includes/controllers/class-controller-form-feeds.php:230
get_item_schema()
public function get_item_schema()
Get the Feed schema, conforming to JSON Schema.
Returns
array
Since: 2.4
Source: includes/webapi/v2/includes/controllers/class-controller-form-feeds.php:250