1 | <?php |
||
15 | class RequestSearchHelper extends SearchHelperBase |
||
16 | { |
||
17 | /** |
||
18 | * RequestSearchHelper constructor. |
||
19 | * |
||
20 | * @param PdoDatabase $database |
||
21 | */ |
||
22 | protected function __construct(PdoDatabase $database) |
||
26 | |||
27 | /** |
||
28 | * Initiates a search for requests |
||
29 | * |
||
30 | * @param PdoDatabase $database |
||
31 | * |
||
32 | * @return RequestSearchHelper |
||
33 | */ |
||
34 | public static function get(PdoDatabase $database) |
||
40 | |||
41 | /** |
||
42 | * Filters the results by IP address |
||
43 | * |
||
44 | * @param string $ipAddress |
||
45 | * |
||
46 | * @return $this |
||
47 | */ |
||
48 | public function byIp($ipAddress) |
||
56 | |||
57 | /** |
||
58 | * Filters the results by email address |
||
59 | * |
||
60 | * @param string $emailAddress |
||
61 | * |
||
62 | * @return $this |
||
63 | */ |
||
64 | public function byEmailAddress($emailAddress) |
||
71 | |||
72 | /** |
||
73 | * Filters the results by name |
||
74 | * |
||
75 | * @param string $name |
||
76 | * |
||
77 | * @return $this |
||
78 | */ |
||
79 | public function byName($name) |
||
86 | |||
87 | /** |
||
88 | * Excludes a request from the results |
||
89 | * |
||
90 | * @param int $requestId |
||
91 | * |
||
92 | * @return $this |
||
93 | */ |
||
94 | public function excludingRequest($requestId) |
||
101 | |||
102 | /** |
||
103 | * Filters the results to only those with a confirmed email address |
||
104 | * |
||
105 | * @return $this |
||
106 | */ |
||
107 | public function withConfirmedEmail() |
||
114 | |||
115 | /** |
||
116 | * Filters the results to exclude purged data |
||
117 | * |
||
118 | * @param SiteConfiguration $configuration |
||
119 | * |
||
120 | * @return $this |
||
121 | */ |
||
122 | public function excludingPurgedData(SiteConfiguration $configuration) |
||
130 | } |