PluginProbe
Booking Calendar / 11.8.4
Booking Calendar v11.8.4
11.8.4 11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 All 204 releases
booking / includes / _shared-ui-catalog / interface-wpbc-ui-catalog-provider.php

interface-wpbc-ui-catalog-provider.php in Booking Calendar 11.8.4, at includes/_shared-ui-catalog/interface-wpbc-ui-catalog-provider.php

38 lines 888 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Provider contract for independent template-driven catalogs.
4 *
5 * @package Booking Calendar
6 * @since 11.6.0
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 /**
14 * Supply normalized responses for one registered catalog.
15 *
16 * Providers own domain authorization and data retrieval. The shared catalog
17 * boundary owns only registration, shared request mechanics, and normalized
18 * response validation.
19 */
20 interface WPBC_UI_Catalog_Provider {
21
22 /**
23 * Return the stable catalog identifier served by this provider.
24 *
25 * @return string Stable catalog identifier.
26 */
27 public function get_catalog_id();
28
29 /**
30 * Build a response for one validated shared request.
31 *
32 * @param WPBC_UI_Catalog_Request $request Validated shared request.
33 *
34 * @return WPBC_UI_Catalog_Response|WP_Error Normalized response or safe error.
35 */
36 public function get_response( $request );
37 }
38