Wikibase
MediaWiki Wikibase extension
|
SnakUrlExpander that uses an PropertyInfoProvider to find a URL pattern for expanding a Snak's value into an URL. More...
Public Member Functions | |
__construct (PropertyInfoProvider $infoProvider) | |
expandUrl (PropertyValueSnak $snak) | |
Private Attributes | |
const | ALLOWED_PROTOCOLS |
URL protocols (schemes) that are allowed in the pattern. | |
$infoProvider | |
SnakUrlExpander that uses an PropertyInfoProvider to find a URL pattern for expanding a Snak's value into an URL.
Wikibase\Lib\PropertyInfoSnakUrlExpander::__construct | ( | PropertyInfoProvider | $infoProvider | ) |
Wikibase\Lib\PropertyInfoSnakUrlExpander::expandUrl | ( | PropertyValueSnak | $snak | ) |
PropertyValueSnak | $snak |
Implements Wikibase\Lib\SnakUrlExpander.
|
private |
|
private |
URL protocols (schemes) that are allowed in the pattern.