Method:
grabAll()
Class:
CREATOR
Method Call:
include_once("core/creator/CREATOR.php");
$creator = new CREATOR($this->db);
ASSOC. ARRAY $creator->grabAll([INT: $userBibliographyId = FALSE]);
Description:
Returns an associative array of all the creators in the WIKINDX database ordered by surname suitable for use with a HTML form select box. If $userBibliographyId is supplied, the list of creators is limited to creators from resources within that user bibliography.
Usage:
$userBibId = $session->getVar("mywikindx_bibliography_use");
include_once("core/creator/CREATOR.php");
$creator = new CREATOR($this->db);
$creatorArray = $creator->grabAll($userBibId);
$creatorArray will be something like:
array(
'793' => 'Asterix',
'102' => 'Grimshaw, Mark',
'399' => 'de Witt, Franciscus I.M.',
'35' => 'Wozniac, Steve',
);
The keys of the arrays are the ID numbers in the database table WKX_creator and are the IDs that are inserted as a comma-delimited list in the creator1, creator2, creator3, creator4 or creator5 fields in WKX_resource_creator.