PHP 클래스 WC_Connect_Service_Schemas_Validator, woocommerce-connect-client

파일 보기 프로젝트 열기: Automattic/woocommerce-connect-client 1 사용 예제들

공개 메소드들

메소드 설명
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