Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Units\CSVUnitStorage Class Reference

CSV-based unit conversion storage. More...

+ Inheritance diagram for Wikibase\Lib\Units\CSVUnitStorage:
+ Collaboration diagram for Wikibase\Lib\Units\CSVUnitStorage:

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
 

Detailed Description

CSV-based unit conversion storage.

The units are stored as: Qsource,factor,QstandardUnit E.g.: Q130964,4.19,Q25269

Author
Stas Malyshev

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Units\CSVUnitStorage::__construct ( $fileName)
Parameters
string$fileNameFilename of the storage file.

Member Function Documentation

◆ loadStorageData()

Wikibase\Lib\Units\CSVUnitStorage::loadStorageData ( )
protected

Load data from concrete storage.

Returns
array[]|null

Reimplemented from Wikibase\Lib\Units\BaseUnitStorage.

Member Data Documentation

◆ $sourceFile

Wikibase\Lib\Units\CSVUnitStorage::$sourceFile
private

The documentation for this class was generated from the following file: