Wikibase
MediaWiki Wikibase extension
|
A container for a set of property IDs for certain well-known roles. More...
Public Member Functions | |
isEmpty () | |
Convenience function to determine whether the properties are completely empty (unconfigured). | |
Static Public Member Functions | |
static | newFromArray (array $wellKnownPropertyIds, ?LoggerInterface $logger=null) |
Parse well-known reference properties from an array containing their serializations under the following keys: | |
Public Attributes | |
$referenceUrlPropertyId | |
$titlePropertyId | |
$statedInPropertyId | |
$authorPropertyId | |
$publisherPropertyId | |
$publicationDatePropertyId | |
$retrievedDatePropertyId | |
Private Member Functions | |
__construct (?NumericPropertyId $referenceUrlPropertyId, ?NumericPropertyId $titlePropertyId, ?NumericPropertyId $statedInPropertyId, ?NumericPropertyId $authorPropertyId, ?NumericPropertyId $publisherPropertyId, ?NumericPropertyId $publicationDatePropertyId, ?NumericPropertyId $retrievedDatePropertyId) | |
Static Private Member Functions | |
static | parseWellKnownProperty (array $wellKnownPropertyIds, string $wellKnownName, LoggerInterface $logger) |
A container for a set of property IDs for certain well-known roles.
To split a list of reference snaks by these properties, ByWellKnownPropertiesGroupedSnaks
can be used.
Instances of this class should be considered immutable; its fields are directly public for convenience, but should not be modified.
|
private |
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::isEmpty | ( | ) |
Convenience function to determine whether the properties are completely empty (unconfigured).
|
static |
Parse well-known reference properties from an array containing their serializations under the following keys:
string[] | $wellKnownPropertyIds | The property ID serializations. |
LoggerInterface | null | $logger | Used to warn on unknown array keys and error on invalid values. |
|
staticprivate |
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::$authorPropertyId |
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::$publicationDatePropertyId |
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::$publisherPropertyId |
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::$referenceUrlPropertyId |
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::$retrievedDatePropertyId |
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::$statedInPropertyId |
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::$titlePropertyId |