Class Call:
include_once("core/collection/COLLECTION.php");
$collection = new COLLECTION($this->db, [$this->vars = FALSE]);
Description:
Common methods for handling WIKINDX collections. A collection is anything of which a WIKINDX resource may be a part of. For example a journal (containing WIKINDX journal_article resource types), a music CD containing WIKINDX music_track resource types), a book (containing WIKINDX book_article resource types) etc.
WKX_collection has three fields: collectionTitle; collectionTitleShort and collectionType. Which collectionType a collection belongs to is defined in core/collection/COLLECTIONMAP.php which is an approximate grouping of collection types. It is intended to supply focussed lists of collections when inputting or editing resources belonging to a collection; for example, only collections that are of type journal will be offered when inputting a resource of type journal_article or web_article -- it would be pointless enlarging the list with collections of type book or music.
Methods:
grabAll()
checkExists()