PluginProbe
404 Solution / 4.3.3
404 Solution v4.3.3
4.3.5 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.2.0 4.1.19 4.1.18 4.1.17 4.1.16 4.1.15 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.1.7 4.1.6 4.1.5 4.1.4 4.1.3 trunk 2.30.0 All 109 releases
404-solution / includes / database / DatabaseQueryBuilderInterface.php

DatabaseQueryBuilderInterface.php in 404 Solution 4.3.3, at includes/database/DatabaseQueryBuilderInterface.php

37 lines 863 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if (!defined('ABSPATH')) {
4 exit;
5 }
6
7 /**
8 * Reusable SQL-string builders shared by every DAO query that filters by
9 * post type or category, and the session-tuning hook that lets large
10 * queries run.
11 */
12 interface ABJ_404_Solution_DatabaseQueryBuilderInterface {
13
14 /**
15 * Build a SQL-safe list from recognized_post_types option.
16 *
17 * @param array<string, mixed> $options
18 * @return string
19 */
20 public function buildPostTypeSqlList(array $options): string;
21
22 /**
23 * Build a SQL-safe list from recognized_categories option.
24 *
25 * @param array<string, mixed> $options
26 * @return string
27 */
28 public function buildCategorySqlList(array $options): string;
29
30 /**
31 * Set SQL session variables to allow large queries.
32 *
33 * @return void
34 */
35 public function setSqlBigSelects(): void;
36 }
37