\all_api_features

Remote file inclusion defence. We'll collect all possible API feature file names there. Later, when routing, if the file doesn't exist then boom, we don't include it.

Summary

Methods
Properties
Constants
__construct()
get()
get_authfree_routes()
$
No constants found
No protected methods found
No protected properties found
N/A
get_all_api_features()
$api_feature_files
N/A

Properties

$

$ : array

authentication_free_routes

Type

array

$api_feature_files

$api_feature_files : array

Type

array

Methods

__construct()

__construct() 

Constructor. Sets up arrays and finds API features

get()

get() 

Returns the API features found

get_authfree_routes()

get_authfree_routes() 

Returns the auth-free API features

get_all_api_features()

get_all_api_features(  $path) 

Scans directories for API features in looking for plugins that are prefixed "api_feature_".

Parameters

$path

the path of the directory to be scanned