tp TouchPointWP Lookup - TenthPres/TouchPoint-WP GitHub Wiki
tp\TouchPointWP\Lookup
Admin API class.
- Full name:
\tp\TouchPointWP\Lookup - This class implements:
\tp\TouchPointWP\Interfaces\api - This class is an Abstract class
Constants
| Constant | Visibility | Type | Value |
|---|---|---|---|
TTL |
public | HOUR_IN_SECONDS |
Methods
api
Handle API requests
public static api(array $uri): bool
- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$uri |
array | The request URI already parsed by parse_url() |
Return Value:
False if endpoint is not found. Should print the result.
getLookup
public static getLookup(string $path, bool $noCache = false): mixed
- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$noCache |
bool |
Throws: