\PUBLISHER

PUBLISHER

Common routines for dealing with publishers

Summary

Methods
Properties
Constants
__construct()
grabAll()
browseMenuArray()
editMenuArray()
checkExists()
removeHanging()
insert()
transferArrows()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() : 

PUBLISHER

Returns

grabAll()

grabAll(  type = FALSE,   userBib = FALSE, mixed||string|int  typeArray = FALSE,   metadata = FALSE) : 

Get publishers from WKX_publisher. Return associative array of id => type

Parameters

type

Default is FALSE

userBib

Default is FALSE

mixed||string|int typeArray

Default is FALSE

metadata

Default is FALSE

Returns

FALSE|array of publishers

browseMenuArray()

browseMenuArray() : mixed||string|int

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

Array is empty if no publishers

Returns

mixed||string|int —

editMenuArray()

editMenuArray() : mixed||string|int

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

Array is empty if no publishers

Returns

mixed||string|int —

checkExists()

checkExists(  name,   location) : 

Does this publisher already exist in the database?

Name must match and location must match if not NULL

Parameters

name
location

Returns

FALSE|publisher ID

removeHanging()

removeHanging() : 

Remove resource-less or collection-less publishers

Returns

insert()

insert(mixed||string|int  v,   alreadyExisted = FALSE, mixed||string|int  errs = array()) : 

Inserts a new publisher into the database.

Requires write permissions.

Parameters

mixed||string|int v
alreadyExisted

Reference, default is FALSE

mixed||string|int errs

Reference, default is empty array

Returns

New publisher ID

transferArrows()

transferArrows() : mixed||string|int

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

Returns

mixed||string|int —

(toRightImage, toLeftImage)