Common methods for collections

A collection is a journal, edited book, CD etc. - something which has multiple resources within it.

version 1
package wikindx4\core\collection
author Mark Grimshaw

 Methods

COLLECTION

__construct() 

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

browseMenuArray() : array

Returns

arrayArray is empty if no collections

check to see if collection title already exists

checkExists(int $id, string $title, string $titleShort, string $type) : mixed

Parameters

$id

int

Collection ID. Default is FALSE

$title

string

$titleShort

string

$type

string

Returns

mixedFALSE or ID

Return array of menu items to edit collections from under the Resource|BEdit menu.

editMenuArray() : array

Returns

arrayArray is empty if no collections

Get collection from WKX_collection.

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

Return associative array of id => collection

Parameters

$type

string

Default is FALSE

$userBib

boolean

Default is FALSE

$typeArray

mixed

Default is FALSE

$metadata

boolean

Default is FALSE

Returns

mixed

Remove resource-less collections from collection list

removeHanging() 

Make the collection select transfer arrows to transfer collections between select boxes with onclick

transferArrows() : array

Returns

array(toRightImage, toLeftImage)

 Properties

 

$commonBib 
 

$config 
 

$db 
 

$html 
 

$messages 
 

$stmt