RESOURCEMAP
in package
RESOURCEMAP
Provides mappings between resource types and the database tables.
Table of Contents
Properties
- $artwork : mixed
- $audiovisual : mixed
- $bill : mixed
- $book : mixed
- $book_article : mixed
- $book_chapter : mixed
- $broadcast : mixed
- $brochure : mixed
- $case : mixed
- $chart : mixed
- $classical : mixed
- $conference_paper : mixed
- $conference_poster : mixed
- $database : mixed
- $film : mixed
- $government_report : mixed
- $hearing : mixed
- $journal_article : mixed
- $legal_ruling : mixed
- $magazine_article : mixed
- $manuscript : mixed
- $map : mixed
- $miscellaneous : mixed
- $miscellaneous_section : mixed
- $music_album : mixed
- $music_score : mixed
- $music_track : mixed
- $newspaper_article : mixed
- $patent : mixed
- $personal : mixed
- $proceedings : mixed
- $proceedings_article : mixed
- $report : mixed
- $software : mixed
- $statute : mixed
- $thesis : mixed
- $unpublished : mixed
- $web_article : mixed
- $web_encyclopedia : mixed
- $web_encyclopedia_article : mixed
- $web_site : mixed
Methods
- __construct() : mixed
- RESOURCEMAP
- getMsgKeys() : array<string|int, mixed>
- Get keys of resource type messages from array
- getOptional() : array<string|int, mixed>
- Get optional array
- getRequired() : array<string|int, mixed>
- Return list of all required fields for each resource type
- getTables() : array<string|int, mixed>
- Return list of db tables used for each resource type.
- getTypeMap() : array<string|int, mixed>
- Return array of resource types' mapping and perform some optimization and error checking.
- getTypes() : array<string|int, mixed>
- Get getTypes array with deactivation of types
- getTypesRaw() : array<string|int, mixed>
- Return array of types without any deactivation of types
- lookupDBfield() : string
- Get database field from readable name of resource type
- lookupReadableName() : string
- Get readable name of resource type from database field
Properties
$artwork
public
mixed
$artwork
$audiovisual
public
mixed
$audiovisual
$bill
public
mixed
$bill
$book
public
mixed
$book
$book_article
public
mixed
$book_article
$book_chapter
public
mixed
$book_chapter
$broadcast
public
mixed
$broadcast
$brochure
public
mixed
$brochure
$case
public
mixed
$case
$chart
public
mixed
$chart
$classical
public
mixed
$classical
$conference_paper
public
mixed
$conference_paper
$conference_poster
public
mixed
$conference_poster
$database
public
mixed
$database
$film
public
mixed
$film
$government_report
public
mixed
$government_report
$hearing
public
mixed
$hearing
$journal_article
public
mixed
$journal_article
$legal_ruling
public
mixed
$legal_ruling
$magazine_article
public
mixed
$magazine_article
$manuscript
public
mixed
$manuscript
$map
public
mixed
$map
$miscellaneous
public
mixed
$miscellaneous
$miscellaneous_section
public
mixed
$miscellaneous_section
$music_album
public
mixed
$music_album
$music_score
public
mixed
$music_score
$music_track
public
mixed
$music_track
$newspaper_article
public
mixed
$newspaper_article
$patent
public
mixed
$patent
$personal
public
mixed
$personal
$proceedings
public
mixed
$proceedings
$proceedings_article
public
mixed
$proceedings_article
$report
public
mixed
$report
$software
public
mixed
$software
$statute
public
mixed
$statute
$thesis
public
mixed
$thesis
$unpublished
public
mixed
$unpublished
$web_article
public
mixed
$web_article
$web_encyclopedia
public
mixed
$web_encyclopedia
$web_encyclopedia_article
public
mixed
$web_encyclopedia_article
$web_site
public
mixed
$web_site
Methods
__construct()
RESOURCEMAP
public
__construct([mixed $exception = false ]) : mixed
Parameters
- $exception : mixed = false
getMsgKeys()
Get keys of resource type messages from array
public
getMsgKeys(string $type) : array<string|int, mixed>
Parameters
- $type : string
Return values
array<string|int, mixed>getOptional()
Get optional array
public
getOptional() : array<string|int, mixed>
Return values
array<string|int, mixed>getRequired()
Return list of all required fields for each resource type
public
getRequired() : array<string|int, mixed>
Return values
array<string|int, mixed>getTables()
Return list of db tables used for each resource type.
public
getTables(string $type) : array<string|int, mixed>
Ensure the resource table exists and always comes first.
Parameters
- $type : string
Return values
array<string|int, mixed> —of db tables
getTypeMap()
Return array of resource types' mapping and perform some optimization and error checking.
public
getTypeMap() : array<string|int, mixed>
Return values
array<string|int, mixed>getTypes()
Get getTypes array with deactivation of types
public
getTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>getTypesRaw()
Return array of types without any deactivation of types
public
getTypesRaw() : array<string|int, mixed>
Return values
array<string|int, mixed>lookupDBfield()
Get database field from readable name of resource type
public
lookupDBfield(string $type, string $readableName) : string
Parameters
- $type : string
- $readableName : string
Return values
stringlookupReadableName()
Get readable name of resource type from database field
public
lookupReadableName(string $type, string $tableName, string $dbName) : string
Parameters
- $type : string
- $tableName : string
- $dbName : string