Wikibase
MediaWiki Wikibase extension
|
Generates HTML for a section edit link. More...
Public Member Functions | |
__construct (SpecialPageLinker $specialPageLinker, TemplateFactory $templateFactory, LocalizedTextProvider $textProvider) | |
getSiteLinksEditSection (EntityId $entityId=null) | |
Returns HTML allowing to edit site links. | |
getLabelDescriptionAliasesEditSection ( $languageCode, EntityId $entityId=null) | |
Returns HTML allowing to edit the section containing label, description and aliases. | |
getAddStatementToGroupSection (PropertyId $propertyId, EntityId $entityId=null) | |
Returns HTML allowing to add a statement to a statementgroup. | |
getStatementEditSection (Statement $statement) | |
Returns HTML allowing to edit a statement. | |
Static Public Member Functions | |
static | enableSectionEditLinks ( $text, $isEditable) |
Private Member Functions | |
getHtmlForEditSection ( $specialPageName, array $specialPageUrlParams) | |
Returns a toolbar with an edit link. | |
getToolbarContainer ( $content) | |
getEditUrl ( $specialPageName, array $specialPageUrlParams) | |
Get the Url to an edit special page. | |
getToolbarButton ( $cssClassSuffix, $buttonLabel, $editUrl=null) | |
Private Attributes | |
$specialPageLinker | |
$templateFactory | |
$textProvider | |
Generates HTML for a section edit link.
Wikibase\View\ToolbarEditSectionGenerator::__construct | ( | SpecialPageLinker | $specialPageLinker, |
TemplateFactory | $templateFactory, | ||
LocalizedTextProvider | $textProvider | ||
) |
|
static |
string | $text | |
bool | $isEditable |
Wikibase\View\ToolbarEditSectionGenerator::getAddStatementToGroupSection | ( | PropertyId | $propertyId, |
EntityId | $entityId = null |
||
) |
Returns HTML allowing to add a statement to a statementgroup.
PropertyId | $propertyId | The property of the statement group |
EntityId | null | $entityId | The id of the entity on which to add a statement |
Implements Wikibase\View\EditSectionGenerator.
|
private |
Get the Url to an edit special page.
string | $specialPageName | The special page to link to |
string[] | $specialPageUrlParams | Additional URL params for the special page |
|
private |
Returns a toolbar with an edit link.
In JavaScript, an enhanced toolbar will be initialized on top of the generated HTML.
string | $specialPageName | the special page for the button |
string[] | $specialPageUrlParams | Additional URL params for the special page |
Wikibase\View\ToolbarEditSectionGenerator::getLabelDescriptionAliasesEditSection | ( | $languageCode, | |
EntityId | $entityId = null |
||
) |
Returns HTML allowing to edit the section containing label, description and aliases.
string | $languageCode | |
EntityId | null | $entityId |
Implements Wikibase\View\EditSectionGenerator.
Wikibase\View\ToolbarEditSectionGenerator::getSiteLinksEditSection | ( | EntityId | $entityId = null | ) |
Returns HTML allowing to edit site links.
EntityId | null | $entityId |
Implements Wikibase\View\EditSectionGenerator.
Wikibase\View\ToolbarEditSectionGenerator::getStatementEditSection | ( | Statement | $statement | ) |
Returns HTML allowing to edit a statement.
Statement | $statement |
Implements Wikibase\View\EditSectionGenerator.
|
private |
string | $cssClassSuffix | |
string | $buttonLabel | the text to show on the toolbar button link |
string | null | $editUrl | The edit url |
|
private |
|
private |
|
private |
|
private |