MediaWiki master
ChangesListCondition.php
Go to the documentation of this file.
1<?php
2
4
5use stdClass;
7
30 public function require( $value ): void;
31
45 public function exclude( $value ): void;
46
53 public function validateValue( $value );
54
68 public function evaluate( stdClass $row, $value ): bool;
69
74 public function capture(): void;
75
80 public function isCaptured(): bool;
81
90 public function prepareQuery( IReadableDatabase $dbr, QueryBackend $query ): void;
91}
Interface for modules implementing a boolean condition which may match a row in a ChangesListResult.
validateValue( $value)
Validate a value and return its normalized form.
capture()
Set a flag indicating that evaluate() will be called with rows from the query result.
evaluate(stdClass $row, $value)
Evaluate the filter condition against a row, determining whether it is true or false.
isCaptured()
Check whether capture() has been called.
exclude( $value)
Add a value to the set of excluded values.
prepareQuery(IReadableDatabase $dbr, QueryBackend $query)
Add conditions and joins to the query in order to implement require() and exclude().
The narrow interface passed to filter modules.
A database connection without write operations.