MediaWiki  1.34.0
ApiQueryBlockInfoTrait.php File Reference

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. More...

Go to the source code of this file.

Functions

 addBlockInfoToQuery ( $showBlockInfo)
 Filters hidden users (where the user doesn't have the right to view them) Also adds relevant block information. More...
 
Methods required from ApiQueryBase
 addFields ( $fields)
 
 addJoinConds ( $conds)
 
 addTables ( $tables, $alias=null)
 
 addWhere ( $conds)
 
 getDB ()
 
 getPermissionManager ()
 
 getUser ()
 

Variables

trait ApiQueryBlockInfoTrait
 

Detailed Description

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Definition in file ApiQueryBlockInfoTrait.php.

Function Documentation

◆ addBlockInfoToQuery()

addBlockInfoToQuery (   $showBlockInfo)
private

Filters hidden users (where the user doesn't have the right to view them) Also adds relevant block information.

Parameters
bool$showBlockInfo
Returns
void

Definition at line 37 of file ApiQueryBlockInfoTrait.php.

References addFields(), addJoinConds(), addTables(), addWhere(), getDB(), getPermissionManager(), and getUser().

Referenced by ApiQueryAllUsers\execute(), ApiQueryUsers\execute(), and ApiQueryBase\showHiddenUsersAddBlockInfo().

◆ addFields()

addFields (   $fields)
abstractprotected

◆ addJoinConds()

addJoinConds (   $conds)
abstractprotected

◆ addTables()

addTables (   $tables,
  $alias = null 
)
abstractprotected

◆ addWhere()

addWhere (   $conds)
abstractprotected

◆ getDB()

getDB ( )
abstractprotected

◆ getPermissionManager()

getPermissionManager ( )
abstractprotected
See also
ApiBase::getPermissionManager

Referenced by PermissionsError\__construct(), UploadForm\__construct(), EmailNotification\actuallyNotifyOnPageChange(), addBlockInfoToQuery(), SpecialRevisionDelete\addUsageText(), MediaWiki\Auth\AuthManager\autoCreateUser(), TemplatesOnThisPageFormatter\buildEditLink(), ProtectionForm\buildForm(), SkinTemplate\buildNavUrls(), ChangeTags\canActivateTag(), ChangeTags\canAddTagsAccompanyingChange(), SpecialBlock\canBlockEmail(), ChangeTags\canCreateTag(), ChangeTags\canDeactivateTag(), ChangeTags\canDeleteTag(), ChangeTags\canUpdateTags(), Autopromote\checkCondition(), SpecialChangeEmail\checkExecutePermissions(), SpecialRecentChangesLinked\doMainQuery(), WatchAction\doUnwatch(), SpecialApiSandbox\execute(), SpecialLog\execute(), SpecialContributions\execute(), SpecialConfirmEmail\execute(), SpecialImport\execute(), SpecialUndelete\execute(), ProtectionForm\execute(), UserrightsPage\fetchUser(), SpecialNewpages\filterLinks(), SpecialDoubleRedirects\formatResult(), ProtectedPagesPager\formatValue(), SpecialAutoblockList\getBlockListPager(), SpecialBlockList\getBlockListPager(), LogEventsList\getExcludeClause(), SpecialContributions\getForm(), SpecialBlock\getFormFields(), NewPagesPager\getQueryInfo(), UsersPager\getQueryInfo(), LogEventsList\getTypeMenuDesc(), ChangesList\insertRollback(), UploadFromUrl\isAllowed(), LocalIdLookup\lookupCentralIds(), LocalIdLookup\lookupUserNames(), User\newFatalPermissionDeniedStatus(), EmailNotification\notifyOnPageChange(), SpecialChangeContentModel\onSubmit(), SpecialBlock\processForm(), SpecialUnblock\processUnblock(), SpecialRecentChanges\registerFilters(), SpecialTags\showActivateDeactivateForm(), SpecialRevisionDelete\showConvenienceLinks(), LoginSignupSpecialPage\showCreateAccountLink(), SpecialSearch\showCreateLink(), SpecialTags\showDeleteTagForm(), MovePageForm\showForm(), SpecialRevisionDelete\showForm(), Article\showPatrolFooter(), SpecialPreferences\showResetForm(), SpecialRevisionDelete\submit(), SpecialPreferences\submitReset(), LogEventsList\userCanViewLogType(), and Article\view().

◆ getUser()