PHP Класс WC_Connect_Service_Schemas_Validator, woocommerce-connect-client

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
validate_service_schemas ( $service_schemas ) : WP_Error | true Validates the overall passed services object (all service types and all services therein)

Защищенные методы

Метод Описание
validate_service_schema ( string $service_type, integer $service_counter, $service_schema ) : WP_Error | true Validates a particular service schema, especially the parts of the service that WC relies on like id, method_title, method_description, etc
validate_service_schema_settings ( string $service_id, object $service_settings ) : WP_Error | true Validates a particular service's service settings schema, especially the parts of the service settings that WC relies on like type, required and properties
validate_service_settings_required_properties ( string $service_id, object $service_settings_properties ) : WP_Error | true Validates a particular service's schema's required properties, especially the parts of the properties that WC relies on and title

Описание методов

validate_service_schema() защищенный Метод

Validates a particular service schema, especially the parts of the service that WC relies on like id, method_title, method_description, etc
protected validate_service_schema ( string $service_type, integer $service_counter, $service_schema ) : WP_Error | true
$service_type string
$service_counter integer
Результат WP_Error | true

validate_service_schema_settings() защищенный Метод

Validates a particular service's service settings schema, especially the parts of the service settings that WC relies on like type, required and properties
protected validate_service_schema_settings ( string $service_id, object $service_settings ) : WP_Error | true
$service_id string
$service_settings object
Результат WP_Error | true

validate_service_schemas() публичный Метод

Validates the overall passed services object (all service types and all services therein)
public validate_service_schemas ( $service_schemas ) : WP_Error | true
Результат WP_Error | true

validate_service_settings_required_properties() защищенный Метод

Validates a particular service's schema's required properties, especially the parts of the properties that WC relies on and title
protected validate_service_settings_required_properties ( string $service_id, object $service_settings_properties ) : WP_Error | true
$service_id string
$service_settings_properties object
Результат WP_Error | true