PUBLISHER

Common routines for dealing with publishers

version 1
package wikindx4\core\publisher
author Mark Grimshaw

 Methods

PUBLISHER

__construct() 

Return array of menu items to browse publishers from under the Resource|Browse menu.

browseMenuArray() : array

Array is empty if no publishers

Returns

array

Does this publisher already exist in the database?

checkExists(string $name, string $location) : mixed

Name must match and location must match if not NULL

Parameters

$name

string

$location

string

Returns

mixedFALSE|publisher ID

Return array of menu items to edit publishers from under the Resource|Edit menu.

editMenuArray() : array

Array is empty if no publishers

Returns

array

Get publishers from WKX_publisher.

grabAll(string $type, int $userBib, array $typeArray, boolean $metadata) : mixed

Return associative array of id => type

Parameters

$type

string

Default is FALSE

$userBib

int

Default is FALSE

$typeArray

array

Default is FALSE

$metadata

boolean

Default is FALSE

Returns

mixedFALSE|array of publishers

Inserts a new publisher into the database.

insert(array $v, boolean $alreadyExisted, array $errs) : int

Requires write permissions.

Parameters

$v

array

$alreadyExisted

boolean

Reference, default is FALSE

$errs

array

Reference, default is empty array

Returns

intNew publisher ID

Remove resource-less or collection-less publishers

removeHanging() 

Make the publisher select transfer arrows to transfer publishers between select boxes with onclick

transferArrows() : array

Returns

array(toRightImage, toLeftImage)

 Properties

 

$commonBib 
 

$config 
 

$db 
 

$gatekeep 
 

$html 
 

$map 
 

$messages 
 

$stmt