Search
in package
Basic search functionality.
Redirect search to target post if only one is returned.
Tags
Table of Contents
Properties
- $instances : array<string|int, object>
- The array of instances of this class and sub-classes.
Methods
- get_instance() : object
- Creates and/or returns the instance of this class.
- redirect_single_result() : void
- Redirect search to the target if only one result is found.
- __construct() : void
- Initialise the class.
Properties
$instances
The array of instances of this class and sub-classes.
protected
static array<string|int, object>
$instances
= array()
Tags
Methods
get_instance()
Creates and/or returns the instance of this class.
public
static get_instance() : object
Tags
Return values
object —The instance of this class.
redirect_single_result()
Redirect search to the target if only one result is found.
public
redirect_single_result() : void
Tags
__construct()
Initialise the class.
protected
__construct() : void