* @param array|string $types
* @param string $user
* @param string $page
- * @param string $pattern
+ * @param bool $pattern
* @param int|string $year Use 0 to start with no year preselected.
* @param int|string $month A month in the 1..12 range. Use 0 to start with no month
* preselected.
* @param string $tagFilter Tag to select by default
* @param string $action
*/
- public function showOptions( $types = [], $user = '', $page = '', $pattern = '', $year = 0,
+ public function showOptions( $types = [], $user = '', $page = '', $pattern = false, $year = 0,
$month = 0, $filter = null, $tagFilter = '', $action = null
) {
global $wgScript, $wgMiserMode;
}
/**
- * @param string $pattern
+ * @param bool $pattern
* @return string Checkbox
*/
private function getTitlePattern( $pattern ) {
/** @var string|Title Events limited to those about Title when set */
private $title = '';
- /** @var string */
- private $pattern = '';
+ /** @var bool */
+ private $pattern = false;
/** @var string */
private $typeCGI = '';
* @param string|array $types Log types to show
* @param string $performer The user who made the log entries
* @param string|Title $title The page title the log entries are for
- * @param string $pattern Do a prefix search rather than an exact title match
+ * @param bool $pattern Do a prefix search rather than an exact title match
* @param array $conds Extra conditions for the query
* @param int|bool $year The year to start from. Default: false
* @param int|bool $month The month to start from. Default: false
* @param int $logId Log entry ID, to limit to a single log entry.
*/
public function __construct( $list, $types = [], $performer = '', $title = '',
- $pattern = '', $conds = [], $year = false, $month = false, $tagFilter = '',
+ $pattern = false, $conds = [], $year = false, $month = false, $tagFilter = '',
$action = '', $logId = false
) {
parent::__construct( $list->getContext() );
* (For the block and rights logs, this is a user page.)
*
* @param string|Title $page Title name
- * @param string $pattern
+ * @param bool $pattern
* @return void
*/
private function limitTitle( $page, $pattern ) {
return $this->title;
}
+ /**
+ * @return bool
+ */
public function getPattern() {
return $this->pattern;
}