WIKINDX METHODS

Method:
writePublisherTable()

Class:
IMPORTCOMMON

Method Call:
include_once("core/file/import/IMPORTCOMMON.php");
$common = new IMPORTCOMMON($this->db);
INT $common->writePublisherTable(STRING: $publisherName, STRING: $publisherLocation, STRING: $wikindxResourceType);

Description:
Write a publisher name and location to the database and return the publisher ID. If the publisher already exists in the database, that publisher's ID is returned, if not, the new publisher is written to the database and the new ID returned.

Once you have an ID back from this function, it needs to be written to the publisher field of WKX_resource_misc for that resource.

Usage:
Example:
	include_once("core/file/import/IMPORTCOMMON.php");
	$common = new IMPORTCOMMON($this->db);
	$publisherId = $common->writePublisherTable("Botswana Press", "Selebi Phikwe", "book");

WIKINDX home      WIKINDX usage      WIKINDX classes