This is a basic factory to create views for DataModel objects.
More...
|
| __construct (EntityIdFormatterFactory $htmlIdFormatterFactory, EntityIdFormatterFactory $plainTextIdFormatterFactory, HtmlSnakFormatterFactory $htmlSnakFormatterFactory, StatementGrouper $statementGrouper, PropertyOrderProvider $propertyOrderProvider, SiteLookup $siteLookup, DataTypeFactory $dataTypeFactory, TemplateFactory $templateFactory, LanguageNameLookup $languageNameLookup, LanguageDirectionalityLookup $languageDirectionalityLookup, NumberLocalizer $numberLocalizer, array $siteLinkGroups, array $specialSiteLinkGroups, array $badgeItems, LocalizedTextProvider $textProvider, SpecialPageLinker $specialPageLinker) |
|
| newItemView (Language $language, LanguageFallbackChain $fallbackChain, CacheableEntityTermsView $entityTermsView) |
| Creates an ItemView suitable for rendering the item.
|
|
| newPropertyView (Language $language, LanguageFallbackChain $fallbackChain, CacheableEntityTermsView $entityTermsView) |
| Creates an PropertyView suitable for rendering the property.
|
|
| newStatementSectionsView ( $languageCode, LanguageFallbackChain $fallbackChain, EditSectionGenerator $editSectionGenerator) |
|
| newStatementGroupListView ( $languageCode, LanguageFallbackChain $fallbackChain, EditSectionGenerator $editSectionGenerator) |
|
This is a basic factory to create views for DataModel objects.
It contains all dependencies of the views besides request-specific options. Those are required in the parameters.
- Copyright
- GPL-2.0-or-later
- Author
- Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
-
Thiemo Kreuz
-
Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
◆ __construct()
Wikibase\View\ViewFactory::__construct |
( |
EntityIdFormatterFactory |
$htmlIdFormatterFactory, |
|
|
EntityIdFormatterFactory |
$plainTextIdFormatterFactory, |
|
|
HtmlSnakFormatterFactory |
$htmlSnakFormatterFactory, |
|
|
StatementGrouper |
$statementGrouper, |
|
|
PropertyOrderProvider |
$propertyOrderProvider, |
|
|
SiteLookup |
$siteLookup, |
|
|
DataTypeFactory |
$dataTypeFactory, |
|
|
TemplateFactory |
$templateFactory, |
|
|
LanguageNameLookup |
$languageNameLookup, |
|
|
LanguageDirectionalityLookup |
$languageDirectionalityLookup, |
|
|
NumberLocalizer |
$numberLocalizer, |
|
|
array |
$siteLinkGroups, |
|
|
array |
$specialSiteLinkGroups, |
|
|
array |
$badgeItems, |
|
|
LocalizedTextProvider |
$textProvider, |
|
|
SpecialPageLinker |
$specialPageLinker |
|
) |
| |
- Parameters
-
EntityIdFormatterFactory | $htmlIdFormatterFactory | |
EntityIdFormatterFactory | $plainTextIdFormatterFactory | |
HtmlSnakFormatterFactory | $htmlSnakFormatterFactory | |
StatementGrouper | $statementGrouper | |
PropertyOrderProvider | $propertyOrderProvider | |
SiteLookup | $siteLookup | |
DataTypeFactory | $dataTypeFactory | |
TemplateFactory | $templateFactory | |
LanguageNameLookup | $languageNameLookup | |
LanguageDirectionalityLookup | $languageDirectionalityLookup | |
NumberLocalizer | $numberLocalizer | |
string[] | $siteLinkGroups | |
string[] | $specialSiteLinkGroups | |
string[] | $badgeItems | |
LocalizedTextProvider | $textProvider | |
SpecialPageLinker | $specialPageLinker | |
- Exceptions
-
◆ hasValidOutputFormat()
- Parameters
-
EntityIdFormatterFactory | $factory | |
string | $expected | |
- Returns
- bool
◆ newItemView()
Creates an ItemView suitable for rendering the item.
- Parameters
-
Language | $language | |
LanguageFallbackChain | $fallbackChain | |
CacheableEntityTermsView | $entityTermsView | |
- Returns
- ItemView
- Exceptions
-
MWException
◆ newPropertyView()
Creates an PropertyView suitable for rendering the property.
- Parameters
-
Language | $language | |
LanguageFallbackChain | $fallbackChain | |
CacheableEntityTermsView | $entityTermsView | |
- Returns
- PropertyView
- Exceptions
-
MWException
◆ newStatementGroupListView()
- Parameters
-
string | $languageCode | |
LanguageFallbackChain | $fallbackChain | |
EditSectionGenerator | $editSectionGenerator | |
- Returns
- StatementGroupListView
◆ newStatementSectionsView()
- Parameters
-
string | $languageCode | |
LanguageFallbackChain | $fallbackChain | |
EditSectionGenerator | $editSectionGenerator | |
- Returns
- StatementSectionsView
◆ newToolbarEditSectionGenerator()
Wikibase\View\ViewFactory::newToolbarEditSectionGenerator |
( |
| ) |
|
|
private |
◆ $badgeItems
Wikibase\View\ViewFactory::$badgeItems |
|
private |
◆ $dataTypeFactory
Wikibase\View\ViewFactory::$dataTypeFactory |
|
private |
◆ $htmlIdFormatterFactory
Wikibase\View\ViewFactory::$htmlIdFormatterFactory |
|
private |
◆ $htmlSnakFormatterFactory
Wikibase\View\ViewFactory::$htmlSnakFormatterFactory |
|
private |
◆ $languageDirectionalityLookup
Wikibase\View\ViewFactory::$languageDirectionalityLookup |
|
private |
◆ $languageNameLookup
Wikibase\View\ViewFactory::$languageNameLookup |
|
private |
◆ $numberLocalizer
Wikibase\View\ViewFactory::$numberLocalizer |
|
private |
◆ $plainTextIdFormatterFactory
Wikibase\View\ViewFactory::$plainTextIdFormatterFactory |
|
private |
◆ $propertyOrderProvider
Wikibase\View\ViewFactory::$propertyOrderProvider |
|
private |
◆ $siteLinkGroups
Wikibase\View\ViewFactory::$siteLinkGroups |
|
private |
◆ $siteLookup
Wikibase\View\ViewFactory::$siteLookup |
|
private |
◆ $specialPageLinker
Wikibase\View\ViewFactory::$specialPageLinker |
|
private |
◆ $specialSiteLinkGroups
Wikibase\View\ViewFactory::$specialSiteLinkGroups |
|
private |
◆ $statementGrouper
Wikibase\View\ViewFactory::$statementGrouper |
|
private |
◆ $templateFactory
Wikibase\View\ViewFactory::$templateFactory |
|
private |
◆ $textProvider
Wikibase\View\ViewFactory::$textProvider |
|
private |
The documentation for this class was generated from the following file: