UserPostQueries.php: add wildcard constants

This commit is contained in:
Zankaria 2025-04-17 15:53:28 +02:00
parent f9fd71162b
commit c4c99ee481

View file

@ -8,6 +8,15 @@ use Vichan\Functions\Net;
* Browse user posts
*/
class UserPostQueries {
/**
* Text string for wildcard search with {@see self::searchPosts()}.
*/
public const SEARCH_POSTS_WILDCARD = '%';
/**
* Text string to escape the wildcard text with {@see self::searchPosts()}.
*/
public const SEARCH_POSTS_ESCAPED_WILDCARD = '%%';
private const CURSOR_TYPE_PREV = 'p';
private const CURSOR_TYPE_NEXT = 'n';