WIKINDX METHODS

Method:
titleExists()

Class:
IMPORTCOMMON

Method Call:
include_once("core/file/import/IMPORTCOMMON.php");
$common = new IMPORTCOMMON($this->db);
BOOLEAN $common->titleExists(STRING: $title, STRING: $primaryCreatorSurname, STRING: $wikindxResourceType);

Description:
This method checks whether a title already exists in the WIKINDX database returning TRUE or FALSE. For WIKINDX to judge that a title already exists, a resource must have the same title, the same primary creator surname and be of the same WIKINDX resource type.

Usage:
Example:
	include_once("core/file/import/IMPORTCOMMON.php");
	$common = new IMPORTCOMMON($this->db);
	if($common->titleExists("A Big Book", "Barthes", "book"))
		continue;

WIKINDX home      WIKINDX usage      WIKINDX classes