Wikibase
MediaWiki Wikibase extension
|
CSV-based unit conversion storage. More...
Public Member Functions | |
__construct ( $fileName) | |
Public Member Functions inherited from Wikibase\Lib\Units\BaseUnitStorage | |
isPrimaryUnit ( $unit) | |
Check if certain unit is primary. | |
getConversion ( $unit) | |
Get conversion from this unit to primary unit. | |
Protected Member Functions | |
loadStorageData () | |
Load data from concrete storage. | |
Private Attributes | |
$sourceFile | |
CSV-based unit conversion storage.
The units are stored as: Qsource,factor,QstandardUnit E.g.: Q130964,4.19,Q25269
Wikibase\Lib\Units\CSVUnitStorage::__construct | ( | $fileName | ) |
string | $fileName | Filename of the storage file. |
|
protected |
Load data from concrete storage.
Reimplemented from Wikibase\Lib\Units\BaseUnitStorage.
|
private |