(abstract) new ReferencesGateway(api)
Abstract base class Gateway for retrieving references
Parameters:
Name | Type | Description |
---|---|---|
api |
mw.Api |
Members
(static) ERROR_NOT_EXIST
Properties:
Name | Type | Description |
---|---|---|
ERROR_NOT_EXIST |
error code to be returned by getReference when a reference does not exist. |
(static) ERROR_OTHER
Properties:
Name | Type | Description |
---|---|---|
ERROR_OTHER |
error code to be returned by getReference under any other circumstance not covered by ERROR_NOT_EXIST. It should be used if it is unclear whether a reference exists or not. |
getReference
Return the matched reference via API or DOM query