CREATOR
in package
Common functions for creators
Table of Contents
Properties
- $commonBib : mixed
- object
- $db : mixed
- object
- $gatekeep : mixed
- object
- $names : mixed
- array
Methods
- collectionDefaults() : mixed
- Remove references to deleted creators in collection defaults fields.
- formatNames() : mixed
- Format names returned from database
- reOrderCreator() : array<string|int, mixed>
- Reorder creator order for any creator role when a creator has been deleted
Properties
$commonBib
object
private
mixed
$commonBib
$db
object
private
mixed
$db
$gatekeep
object
private
mixed
$gatekeep
$names
array
private
mixed
$names
Methods
collectionDefaults()
Remove references to deleted creators in collection defaults fields.
private
collectionDefaults(array<string|int, mixed> $deleteIds) : mixed
Parameters
- $deleteIds : array<string|int, mixed>
-
Array of creator IDs that have been deleted
formatNames()
Format names returned from database
private
formatNames(array<string|int, mixed> &$row, array<string|int, mixed> &$creators) : mixed
Parameters
- $row : array<string|int, mixed>
- $creators : array<string|int, mixed>
-
Array reference to be written to
reOrderCreator()
Reorder creator order for any creator role when a creator has been deleted
private
reOrderCreator(array<string|int, mixed> $creators, array<string|int, mixed> $deleteIds) : array<string|int, mixed>
Parameters
- $creators : array<string|int, mixed>
-
Array of creators in 'creators' position of collection::collectionDefault field of database
- $deleteIds : array<string|int, mixed>
-
Array of creator IDs that have been deleted