PHP Class WC_REST_Connect_Services_Controller, woocommerce-connect-client

Inheritance: extends WP_REST_Controller
Show file Open project: Automattic/woocommerce-connect-client

Protected Properties

Property Type Description
$logger WC_Connect_Logger
$namespace string Endpoint namespace.
$rest_base string Route base.
$service_schemas_store WC_Connect_Service_Schemas_Store
$service_settings_store WC_Connect_Service_Settings_Store

Public Methods

Method Description
__construct ( WC_Connect_Service_Schemas_Store $schemas_store, WC_Connect_Service_Settings_Store $settings_store, WC_Connect_Logger $logger )
register_routes ( ) Register the routes for order notes.
update_item ( $request ) Attempts to update the settings on a particular service and instance
update_item_permissions_check ( $request ) Validate the requestor's permissions

Method Details

__construct() public method

public __construct ( WC_Connect_Service_Schemas_Store $schemas_store, WC_Connect_Service_Settings_Store $settings_store, WC_Connect_Logger $logger )
$schemas_store WC_Connect_Service_Schemas_Store
$settings_store WC_Connect_Service_Settings_Store
$logger WC_Connect_Logger

register_routes() public method

Register the routes for order notes.
public register_routes ( )

update_item() public method

Attempts to update the settings on a particular service and instance
public update_item ( $request )

update_item_permissions_check() public method

Validate the requestor's permissions
public update_item_permissions_check ( $request )

Property Details

$logger protected property

protected WC_Connect_Logger $logger
return WC_Connect_Logger

$namespace protected property

Endpoint namespace.
protected string $namespace
return string

$rest_base protected property

Route base.
protected string $rest_base
return string

$service_schemas_store protected property

protected WC_Connect_Service_Schemas_Store $service_schemas_store
return WC_Connect_Service_Schemas_Store

$service_settings_store protected property

protected WC_Connect_Service_Settings_Store $service_settings_store
return WC_Connect_Service_Settings_Store