<?php
interface Tribe__Tickets__Validator__Interface extends Tribe__Validator__Interface {
/**
* Whether the value is the post id of an existing ticket or not.
*
* @since 4.8.0
*
* @param int $ticket_id
*
* @return bool
*/
public function is_ticket_id( $ticket_id );
/**
* Whether a csv list, or array, of post IDs only contains valid ticket IDs or not.
*
* @since 4.8
*
* @param string|array $tickets
* @param string $sep
*
* @return bool
*/
public function is_ticket_id_list( $tickets, $sep = ',' );
/**
* Whether the value is the post id of an existing attendee or not.
*
* @since 4.8.0
*
* @param int $attendee_id
*
* @return bool
*/
public function is_attendee_id( $attendee_id );
/**
* Whether a csv list, or array, of post IDs only contains valid attendee IDs or not.
*
* @since 4.8
*
* @param string|array $attendees
* @param string $sep
*
* @return bool
*/
public function is_attendee_id_list( $attendees, $sep = ',' );
/**
* Whether the value is the post ID of an existing event or not.
*
* @since 4.7.5
*
* @param int|string $event_id
*
* @return bool
*/
public function is_event_id( $event_id );
/**
* Whether a post ID exists.
*
* @since 4.8
*
* @param int $post_id
*
* @return bool
*/
public function is_post_id( $post_id );
/**
* Whether a csv list, or array, of post IDs only contains valid posts IDs or not.
*
* @since 4.8
*
* @param string|array $posts
* @param string $sep
*
* @return bool
*/
public function is_post_id_list( $posts, $sep = ',' );
}
|