PHP Class ACF_To_REST_API_Controller

Inheritance: extends WP_REST_Controller
Show file Open project: airesvsg/acf-to-rest-api Class Usage Examples

Protected Properties

Property Type Description
$id
$type

Public Methods

Method Description
__construct ( $type )
get_item ( $request )
get_item_permissions_check ( $request )
prepare_item_for_database ( $request )
register_hooks ( )
register_routes ( )
rest_insert ( $object, $request, $creating )
rest_prepare ( $response, $post, $request )
update_item ( $request )
update_item_permissions_check ( $request )

Protected Methods

Method Description
format_id ( $object )
get_field_objects ( $id )
get_fields ( $request, $response = null, $object = null )
get_id ( $object )
get_rest_base ( $type )

Method Details

__construct() public method

public __construct ( $type )

format_id() protected method

protected format_id ( $object )

get_field_objects() protected method

protected get_field_objects ( $id )

get_fields() protected method

protected get_fields ( $request, $response = null, $object = null )

get_id() protected method

protected get_id ( $object )

get_item() public method

public get_item ( $request )

get_item_permissions_check() public method

public get_item_permissions_check ( $request )

get_rest_base() protected method

protected get_rest_base ( $type )

prepare_item_for_database() public method

public prepare_item_for_database ( $request )

register_hooks() public method

public register_hooks ( )

register_routes() public method

public register_routes ( )

rest_insert() public method

public rest_insert ( $object, $request, $creating )

rest_prepare() public method

public rest_prepare ( $response, $post, $request )

update_item() public method

public update_item ( $request )

update_item_permissions_check() public method

public update_item_permissions_check ( $request )

Property Details

$id protected property

protected $id

$type protected property

protected $type