Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | List of all members
PFFormEditAction Class Reference
Inheritance diagram for PFFormEditAction:
Inheritance graph
[legend]
Collaboration diagram for PFFormEditAction:
Collaboration graph
[legend]

Public Member Functions

 getName ()
 
 show ()
 
 execute ()
 

Static Public Member Functions

static displayTab ( $obj, &$links)
 
static displayFormChooser ( $output, $title)
 
static getNumPagesPerForm ()
 
static printLinksToFormArray ( $formNames, $targetName, $fe)
 
static displayForm ( $action, $article)
 

Member Function Documentation

◆ displayForm()

static PFFormEditAction::displayForm (   $action,
  $article 
)
static

The function called if we're in index.php (as opposed to one of the special pages)

Parameters
Action$action
Article$article
Returns
true

◆ displayTab()

static PFFormEditAction::displayTab (   $obj,
$links 
)
static

Adds an "action" (i.e., a tab) to edit the current article with a form

Parameters
Title$obj
array&$links
Returns
true

◆ execute()

PFFormEditAction::execute ( )

Execute the action in a silent fashion: do not display anything or release any errors.

Returns
bool whether execution was successful

◆ getName()

PFFormEditAction::getName ( )

Return the name of the action this object responds to

Returns
String lowercase

◆ getNumPagesPerForm()

static PFFormEditAction::getNumPagesPerForm ( )
static

Finds the number of pages on the wiki that use each form, by getting all the categories that have a #default_form call pointing to a particular form, and adding up the number of pages in each such category. This approach doesn't count #default_form calls for namespaces or individual pages, but that doesn't seem like a big deal, because, when creating a page in a namespace that has a form, this interface probably won't get called anyway; and #default_form calls for individual pages are (hopefully) pretty rare.

Returns
int[]

◆ show()

PFFormEditAction::show ( )

The main action entry point. Do all output for display and send it to the context output. Do not use globals $wgOut, $wgRequest, etc, in implementations; use $this->getOutput(), etc.

Exceptions
ErrorPageError
Returns
false

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy