WIKINDX METHODS

Method:
pageFormat()

Class:
EXPORTCOMMON

Method Call:
include_once("core/file/export/EXPORTCOMMON.php");
$common = new EXPORTCOMMON($this->db);
STRING $common->pageFormat(ASSOC ARRAY: $row, STRING: $exportType);

Description:
This method returns the pageStart and pageEnd fields of a WIKINDX resource as a single string.

$row is an associative array returned by SQL::fetchAssoc().

$exportType is a string indicating the target format ('endnote', 'bibtex', 'ris' etc.) and delimiters between pages will be dealt with differently according to value here.

Usage:
Example:
	include_once("core/file/export/EXPORTCOMMON.php");
	$common = new EXPORTCOMMON($this->db);
	while($row = $this->db->fetchAssoc($sth))
		$pages = $common->pageFormat($row, 'bibtex');

WIKINDX home      WIKINDX usage      WIKINDX classes