Go to the documentation of this file.
26 parent::__construct(
'Newimages' );
36 $form = $pager->getForm();
38 $form->displayForm(
'' );
41 $this->
getOutput()->addHTML( $pager->getBody() );
43 $this->
getOutput()->addHTML( $pager->getNavigationBar() );
64 if ( is_numeric( $par ) ) {
73 $conds = $jconds =
array();
76 if ( !$this->showbots ) {
79 if ( count( $groupsWithBotPermission ) ) {
81 $conds[] =
'ug_group IS NULL';
82 $jconds[
'user_groups'] =
array(
85 'ug_group' => $groupsWithBotPermission,
92 if ( !$wgMiserMode && $this->
like !==
null ) {
95 if ( $likeObj instanceof
Title ) {
96 $like =
$dbr->buildLike(
98 strtolower( $likeObj->getDBkey() ),
101 $conds[] =
"LOWER(img_name) $like";
108 'join_conds' => $jconds,
116 return 'img_timestamp';
120 if ( !$this->gallery ) {
122 $mode = $this->
getRequest()->getVal(
'gallerymode',
null );
129 $this->gallery->setContext( $this->
getContext() );
136 return $this->gallery->toHTML();
140 $name = $row->img_name;
145 $time = $this->
getLanguage()->userTimeAndDate( $row->img_timestamp, $this->getUser() );
150 . htmlspecialchars(
$time )
161 'label-message' =>
'newimages-label',
166 'label' => $this->
msg(
'showhidebots', $this->
msg(
'show' )->plain() )->escaped(),
167 'name' =>
'showbots',
171 'default' => $this->mLimit,
176 'default' => $this->
getRequest()->getText(
'offset' ),
181 if ( $wgMiserMode ) {
182 unset( $fields[
'like'] );
188 $form->setSubmitTextMsg(
'ilsubmit' );
189 $form->setMethod(
'get' );
190 $form->setWrapperLegendMsg(
'newimages-legend' );
static & makeTitle( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
see documentation in includes Linker php for Linker::makeImageLink & $time
static newFromId( $id)
Static factory method for creation from a given user ID.
getContext()
Get the RequestContext object.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
msg()
Get a Message object with context set Parameters are the same as wfMessage()
namespace and then decline to actually register it RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist & $tables
getOutput()
Get the OutputPage being used for this instance.
& wfGetDB( $db, $groups=array(), $wiki=false)
Get a Database object.
usually copyright or history_copyright This message must be in HTML not wikitext $subpages will be ignored and the rest of subPageSubtitle() will run. 'SkinTemplateBuildNavUrlsNav_urlsAfterPermalink' whether MediaWiki currently thinks this is a CSS JS page Hooks may change this value to override the return value of Title::isCssOrJsPage(). 'TitleIsAlwaysKnown' whether MediaWiki currently thinks this page is known isMovable() always returns false. $title whether MediaWiki currently thinks this page is movable Hooks may change this value to override the return value of Title::isMovable(). 'TitleIsWikitextPage' whether MediaWiki currently thinks this is a wikitext page Hooks may change this value to override the return value of Title::isWikitextPage() 'TitleMove' use UploadVerification and UploadVerifyFile instead $form
static factory( $mode=false)
Get a new image gallery.
Shortcut to construct an includable special page.
getRequest()
Get the WebRequest object.
getTitle()
Get the Title object.
static link( $target, $html=null, $customAttribs=array(), $query=array(), $options=array())
This function returns an HTML link to the given target.
getLanguage()
Get the Language object.
An IContextSource implementation which will inherit context from another source but allow individual ...
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
when a variable name is used in a it is silently declared as a new masking the global
getContext()
Gets the context this SpecialPage is executed in.
presenting them properly to the user as errors is done by the caller $title
Allows to change the fields on the form that will be generated $name
static newFromURL( $url)
THIS IS NOT THE FUNCTION YOU WANT.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
Interface for objects which can provide a context on request.
Represents a title within MediaWiki.
For a write use something like
getRequest()
Get the WebRequest object.
execute( $par)
Default execute method Checks user permissions, calls the function given in mFunction.
return true to allow those checks to and false if checking is done use this to change the tables headers temp or archived zone change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped add a value to it if you want to add a cookie that have to vary cache options can modify $query
outputHeader( $summaryMessageKey='')
Outputs a summary message on top of special pages Per default the message key is the canonical name o...
including( $x=null)
Whether the special page is being evaluated via transclusion.
static getGroupsWithPermission( $role)
Get all the groups who have a given permission.