42 parent::__construct( $form->getContext() );
48 $rcQuery = RecentChange::getQueryInfo();
53 $namespace = $this->opts->getValue(
'namespace' );
54 $namespace = ( $namespace ===
'all' ) ?
false :
intval( $namespace );
56 $username = $this->opts->getValue(
'username' );
57 $user = Title::makeTitleSafe( NS_USER,
$username );
59 $size =
abs(
intval( $this->opts->getValue(
'size' ) ) );
61 if ( $this->opts->getValue(
'size-mode' ) ===
'max' ) {
62 $conds[] =
'page_len <= ' . $size;
64 $conds[] =
'page_len >= ' . $size;
68 if ( $namespace !==
false ) {
69 if ( $this->opts->getValue(
'invert' ) ) {
70 $conds[] =
'rc_namespace != ' . $this->mDb->addQuotes( $namespace );
72 $conds[
'rc_namespace'] = $namespace;
77 $conds[] = ActorMigration::newMigration()->getWhere(
81 $this->opts->getValue(
'hideliu' )
83 # If anons cannot make new pages, don't "exclude logged in users"!
84 $conds[] = ActorMigration::newMigration()->isAnon( $rcQuery[
'fields'][
'rc_user'] );
87 # If this user cannot see patrolled edits or they are off, don't do dumb queries!
88 if ( $this->opts->getValue(
'hidepatrolled' ) && $this->getUser()->useNPPatrol() ) {
89 $conds[
'rc_patrolled'] = RecentChange::PRC_UNPATROLLED;
92 if ( $this->opts->getValue(
'hidebots' ) ) {
96 if ( $this->opts->getValue(
'hideredirs' ) ) {
97 $conds[
'page_is_redirect'] = 0;
103 'length' =>
'page_len',
'rev_id' =>
'page_latest',
'page_namespace',
'page_title'
105 $join_conds = [
'page' => [
'JOIN',
'page_id=rc_cur_id' ] ] + $rcQuery[
'joins'];
109 Hooks::run(
'SpecialNewpagesConditions',
110 [ &$pager, $this->opts, &$conds, &
$tables, &$fields, &$join_conds ] );
117 'join_conds' => $join_conds
127 $this->opts[
'tagfilter']
134 return 'rc_timestamp';
138 return $this->mForm->formatRow( $row );
142 # Do a batch existence check on pages
144 foreach ( $this->mResult as $row ) {
145 $linkBatch->add( NS_USER, $row->rc_user_text );
147 $linkBatch->add( $row->page_namespace, $row->page_title );
149 $linkBatch->execute();
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
Class representing a list of titles The execute() method checks them all for existence and adds them ...
A special page that list newly created pages.
static newFromName( $name, $validate='valid')
Static factory method for creation from username.
static groupHasPermission( $group, $role)
Check, if the given group has the given permission.
this hook is for auditing only RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist & $tables
this hook is for auditing only or null if authentication failed before getting that far $username