Method:
checkExists()
Class:
CREATOR
Method Call:
include_once("core/creator/CREATOR.php");
$creator = new CREATOR($this->db);
INT $creator->checkExists(STRING: $surname, STRING: $firstname, STRING: $initials, STRING: $prefix);
Description:
Prior to inserting or updating a creator, this method should be called to check whether the new creator already exists in the WKX_creator table. If it does not, FALSE is returned; if it does, the creator ID is returned ready for insertion into the WKX_resource_creator table. The match is case-insensitive and $initials should have been formatted with CREATOR::formatInitials().
Usage:
$creator = new CREATOR($this->db); $id = $creator->checkExists("WildeBeast", "Theophilus", "P", FALSE);