28 use ApiBlockInfoTrait;
40 if ( $showBlockInfo ) {
41 $queryInfo = DatabaseBlock::getQueryInfo();
44 'tables' => [
'ipblocks' ],
45 'fields' => [
'ipb_deleted' ],
50 $this->
addTables( [
'blk' => $queryInfo[
'tables'] ] );
54 'blk' => [
'LEFT JOIN', [
56 'ipb_expiry > ' . $db->addQuotes( $db->timestamp() ),
62 $this->
addWhere(
'ipb_deleted = 0 OR ipb_deleted IS NULL' );
72 abstract protected function getDB();
81 abstract protected function addTables( $tables, $alias =
null );
87 abstract protected function addWhere( $conds );
addBlockInfoToQuery( $showBlockInfo)
Filters hidden users (where the user doesn't have the right to view them) Also adds relevant block in...
addTables( $tables, $alias=null)
trait ApiQueryBlockInfoTrait