Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Hooks\Helpers\OutputPageEditability Class Reference

Determined (likely) editability of an OutputPage by inspecting this god object's properties. More...

Public Member Functions

 validate (OutputPage $out)
 

Private Member Functions

 isProbablyEditable (User $user, Title $title)
 This is duplicated from.
 
 isEditView (OutputPage $out)
 This is mostly a duplicate of.
 
 isDiff (OutputPage $out)
 
 isLatestRevision (OutputPage $out)
 

Detailed Description

Determined (likely) editability of an OutputPage by inspecting this god object's properties.

Most things feel like they should be preconfigured properties but are only known on call time as this is used in a hook.

Member Function Documentation

◆ isDiff()

Wikibase\Repo\Hooks\Helpers\OutputPageEditability::isDiff ( OutputPage  $out)
private

◆ isEditView()

Wikibase\Repo\Hooks\Helpers\OutputPageEditability::isEditView ( OutputPage  $out)
private

This is mostly a duplicate of.

See also
\Wikibase\Repo\Actions\ViewEntityAction::isEditable()
Parameters
OutputPage$out
Returns
bool

◆ isLatestRevision()

Wikibase\Repo\Hooks\Helpers\OutputPageEditability::isLatestRevision ( OutputPage  $out)
private

◆ isProbablyEditable()

Wikibase\Repo\Hooks\Helpers\OutputPageEditability::isProbablyEditable ( User  $user,
Title  $title 
)
private

This is duplicated from.

See also
OutputPage::getJSVars - wgIsProbablyEditable
Parameters
User$user
Title$title
Returns
bool

◆ validate()

Wikibase\Repo\Hooks\Helpers\OutputPageEditability::validate ( OutputPage  $out)
Parameters
OutputPage$out
Returns
bool

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