A container for a set of property IDs for certain well-known roles.
More...
|
| isEmpty () |
| Convenience function to determine whether the properties are completely empty (unconfigured).
|
|
|
static | newFromArray (array $wellKnownPropertyIds, ?LoggerInterface $logger=null) |
| Parse well-known reference properties from an array containing their serializations under the following keys:
|
|
|
| __construct (?PropertyId $referenceUrlPropertyId, ?PropertyId $titlePropertyId, ?PropertyId $statedInPropertyId, ?PropertyId $authorPropertyId, ?PropertyId $publisherPropertyId, ?PropertyId $publicationDatePropertyId, ?PropertyId $retrievedDatePropertyId) |
|
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.
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::__construct |
( |
?PropertyId |
$referenceUrlPropertyId, |
|
|
?PropertyId |
$titlePropertyId, |
|
|
?PropertyId |
$statedInPropertyId, |
|
|
?PropertyId |
$authorPropertyId, |
|
|
?PropertyId |
$publisherPropertyId, |
|
|
?PropertyId |
$publicationDatePropertyId, |
|
|
?PropertyId |
$retrievedDatePropertyId |
|
) |
| |
|
private |
◆ isEmpty()
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::isEmpty |
( |
| ) |
|
Convenience function to determine whether the properties are completely empty (unconfigured).
◆ newFromArray()
static Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::newFromArray |
( |
array |
$wellKnownPropertyIds, |
|
|
?LoggerInterface |
$logger = null |
|
) |
| |
|
static |
Parse well-known reference properties from an array containing their serializations under the following keys:
- referenceUrl
- title
- statedin
- author
- publisher
- publicationDate
- retrievedDate
- Parameters
-
string[] | $wellKnownPropertyIds | The property ID serializations. |
LoggerInterface | null | $logger | Used to warn on unknown array keys and error on invalid values. |
- Returns
- WellKnownReferenceProperties
◆ parseWellKnownProperty()
static Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::parseWellKnownProperty |
( |
array |
$wellKnownPropertyIds, |
|
|
string |
$wellKnownName, |
|
|
LoggerInterface |
$logger |
|
) |
| |
|
staticprivate |
◆ $authorPropertyId
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::$authorPropertyId |
◆ $publicationDatePropertyId
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::$publicationDatePropertyId |
◆ $publisherPropertyId
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::$publisherPropertyId |
◆ $referenceUrlPropertyId
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::$referenceUrlPropertyId |
◆ $retrievedDatePropertyId
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::$retrievedDatePropertyId |
◆ $statedInPropertyId
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::$statedInPropertyId |
◆ $titlePropertyId
Wikibase\Lib\Formatters\Reference\WellKnownReferenceProperties::$titlePropertyId |
The documentation for this class was generated from the following file: