Common functions for creators
version | 1 |
---|---|
package | wikindx4\core\creator |
author | Mark Grimshaw |
__construct()
checkExists(string $surname, string $firstname, string $initials, string $prefix) : int
string
string
string
string
int
creator ID if exists, FALSE otherwiseformatInitials(string $raw) : string
Initials are stored unpunctuated and space-delimited. In the final result, they can only consist of A-Z (and UTF-8) and space characters
string
string
grabAll(int $userBib, mixed $typeArray, mixed $metadata, boolean $group) : array
int
ID of user bibliography to use. Default is FALSE
mixed
array of resource types within which to select creators. Default is FALSE
mixed
metadata type or metadata array ('quote', 'paraphrase' etc) -- gather only creators for resources which have metadata Default is FALSE
boolean
group database creators together into the same person if TRUE. Default is FALSE
array
of id => creatorgrabGroupAvailableMasters() : mixed
mixed
FALSE|array of creatorsgrabGroupAvailableMembers(boolean $notExists) : mixed
boolean
mixed
FALSE|array of creatorsgrabGroupMasters() : mixed
mixed
FALSE|array of creatorsgrabGroupMembers(int $masterId) : mixed
int
mixed
FALSE|array of creatorsinsert(array $v) : int
Requires write permissions.
array
Array of surname, firstname, initials, prefix
int
Inserted IDremoveHanging()
transferArrows() : array
array
(toRightImage, toLeftImage)formatNames(array $row, array $creators)
array
array
Array reference to be written to
$commonBib
$config
$db
$errors
$gatekeep
$html
$names
$stmt