MediaWiki  master
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
 getDB ()
 
 getPermissionManager ()
 
 getUser ()
 
 addTables ( $tables, $alias=null)
 
 addFields ( $fields)
 
 addWhere ( $conds)
 
 addJoinConds ( $conds)
 

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 38 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
See also
ApiQueryBase::addFields
Parameters
array | string$fields

Referenced by addBlockInfoToQuery().

◆ addJoinConds()

addJoinConds (   $conds)
abstractprotected
See also
ApiQueryBase::addJoinConds
Parameters
array$conds

Referenced by addBlockInfoToQuery().

◆ addTables()

addTables (   $tables,
  $alias = null 
)
abstractprotected
See also
ApiQueryBase::addTables
Parameters
string | array$tables
string | null$alias

Referenced by addBlockInfoToQuery().

◆ addWhere()

addWhere (   $conds)
abstractprotected
See also
ApiQueryBase::addWhere
Parameters
string | array$conds

Referenced by addBlockInfoToQuery().

◆ getDB()

◆ getPermissionManager()

getPermissionManager ( )
abstractprotected
See also
ApiBase::getPermissionManager
Returns
PermissionManager

Referenced by PermissionsError\__construct(), UploadForm\__construct(), EmailNotification\actuallyNotifyOnPageChange(), addBlockInfoToQuery(), 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(), SpecialUndelete\checkPermissions(), SpecialRecentChangesLinked\doMainQuery(), WatchAction\doUnwatch(), SpecialApiSandbox\execute(), SpecialLog\execute(), SpecialContributions\execute(), SpecialConfirmEmail\execute(), SpecialImport\execute(), ProtectionForm\execute(), SpecialUndelete\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(), LoginSignupSpecialPage\showCreateAccountLink(), SpecialSearch\showCreateLink(), SpecialTags\showDeleteTagForm(), MovePageForm\showForm(), Article\showPatrolFooter(), SpecialPreferences\showResetForm(), SpecialPreferences\submitReset(), LogEventsList\userCanViewLogType(), and Article\view().

◆ getUser()