tp TouchPointWP Lookup - TenthPres/TouchPoint-WP GitHub Wiki
tp\TouchPointWP\Lookup
Admin API class.
- Class name: Lookup
- Namespace: \tp\TouchPointWP
- This is an abstract class
- This class implements: tp\TouchPointWP\Interfaces\api
Constants
TTL
const TTL = HOUR_IN_SECONDS
Methods
api
bool tp\TouchPointWP\Interfaces\api::api(array uri)
Handle API requests
- Visibility: public
- This method is static.
- This method is defined by tp\TouchPointWP\Interfaces\api
Arguments
- uri array - The request URI already parsed by parse_url()
Returns
- bool - False if endpoint is not found. Should print the result.
getLookup
mixed tp\TouchPointWP\Lookup::getLookup(string path, bool noCache)
- Visibility: public
- This method is static.
Arguments
- path string* noCache bool
Returns
- mixed -