EXPORTER

parent/base exporter class. The specific exporter classes should inherit.

version 1
package wikindx4\core\importexport
author Mark Grimshaw
author There is another author who was responsible for the main work here but I can't remember who. Get in touch if it was you!

 Methods

This is the main public function for exporting

export(array $row, array $creators) 

Parameters

$row

array

$creators

array

formatName - format one name depending on the export type

formatName(array $creatorRow, string $exportType) : string
author Mark Grimshaw

Parameters

$creatorRow

array

$exportType

string

Returns

string

titleFormat - format and return the resource title from the supplied SQL $row

titleFormat(array $row, boolean $bibtex) : string
author Mark Grimshaw

Parameters

$row

array

$bibtex

boolean

Returns

string

Convert raw array of data to the appropriate format

convertEntry() 

Create date

dateFormat(array $row) 

Parameters

$row

array

get and format data

getData(array $row) 

Parameters

$row

array

format names

nameFormat() 

Url encode

uEncode(string $element) 

Parameters

$element

string

 Properties

 

$authors 
 

$creators 
 

$db 
 

$entry 
 

$map