Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\Utils\Csv Class Reference

Public Member Functions

 __construct ( $show=false, $bom=false)
 
 toString (array $header, array $rows, $sep=self::DEFAULT_SEP)
 
 merge ( $rows, $sep=',')
 

Public Attributes

const DEFAULT_SEP = ','
 

Detailed Description

GNU GPL v2+

Since
3.0
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\Utils\Csv::__construct (   $show = false,
  $bom = false 
)
Since
3.0
Parameters
boolean$show
boolean$bom

Member Function Documentation

◆ merge()

SMW\Utils\Csv::merge (   $rows,
  $sep = ',' 
)

Merge row and column values where the subject (first column) uses the same identifier.

Since
3.0
Parameters
array$rows
string$sep
Returns
array

◆ toString()

SMW\Utils\Csv::toString ( array  $header,
array  $rows,
  $sep = self::DEFAULT_SEP 
)
Since
3.0
Parameters
array$header
array$rows
string$sep
Returns
string

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

About | General disclaimer | Privacy policy