\RESOURCEMAP

RESOURCEMAP

Provides mappings between resource types and the database tables.

Summary

Methods
Properties
Constants
__construct()
lookupReadableName()
lookupDBfield()
getRequired()
getTables()
getMsgKeys()
getTypeMap()
getTypesRaw()
getOptional()
getTypes()
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() : 

RESOURCEMAP

Returns

lookupReadableName()

lookupReadableName(  type,   tableName,   dbName) : 

Get readable name of resource type from database field

Parameters

type
tableName
dbName

Returns

lookupDBfield()

lookupDBfield(  type,   readableName) : 

Get database field from readable name of resource type

Parameters

type
readableName

Returns

getRequired()

getRequired() : mixed||string|int

Return list of all required fields for each resource type

Returns

mixed||string|int —

getTables()

getTables(  type) : mixed||string|int

Return list of db tables used for each resource type.

Ensure the resource table exists and always comes first.

Parameters

type

Returns

mixed||string|int —

of db tables

getMsgKeys()

getMsgKeys(  type) : mixed||string|int

Get keys of resource type messages from array

Parameters

type

Returns

mixed||string|int —

getTypeMap()

getTypeMap() : mixed||string|int

Return array of resource types' mapping and perform some optimization and error checking.

Returns

mixed||string|int —

getTypesRaw()

getTypesRaw() : mixed||string|int

Return array of types without any deactivation of types

Returns

mixed||string|int —

getOptional()

getOptional() : mixed||string|int

Get optional array

Returns

mixed||string|int —

getTypes()

getTypes() : mixed||string|int

Get getTypes array with deactivation of types

Returns

mixed||string|int —