BuddyClients Docs

ServiceHandler
in package

Validates services and custom quotes.

Initializes the validation process on post updates.

Tags
since
0.1.0

Table of Contents

Methods

__construct()  : mixed
Constructor method.
update_meta_flags()  : mixed
Updates a meta flag on an update to the post's meta values.
validate_all_quotes()  : mixed
Validates all Custom Quotes.
validate_all_services()  : mixed
Validates all Services.
validate_quote()  : mixed
Validates a Custom Quote.
validate_service()  : mixed
Validates a Service or Quote.

Methods

__construct()

Constructor method.

public __construct() : mixed
Tags
since
0.1.0

update_meta_flags()

Updates a meta flag on an update to the post's meta values.

public update_meta_flags(int $meta_id, int $post_id, string $meta_key, string $meta_value) : mixed
Parameters
$meta_id : int

ID of the meta data field

$post_id : int

Post ID

$meta_key : string

Name of meta field

$meta_value : string

Value of meta field

Tags
since
0.4.0

validate_all_quotes()

Validates all Custom Quotes.

public validate_all_quotes() : mixed
Tags
since
0.1.0

validate_all_services()

Validates all Services.

public validate_all_services() : mixed
Tags
since
0.1.0

validate_quote()

Validates a Custom Quote.

public validate_quote(mixed $post_id) : mixed
Parameters
$post_id : mixed
Tags
since
0.1.0

validate_service()

Validates a Service or Quote.

public validate_service(mixed $post_id) : mixed
Parameters
$post_id : mixed
Tags
since
0.1.0

        
On this page

Search results