Tkt_Search_And_Filter_Declarations
in package
The Declarations Class.
Description
This is used both in public and admin when we need an instance of all shortcodes, or a centrally managed list of object properties or array members where we cannot already get it from the code (such as user object, which is a entangled mess, or get_bloginfo which is a case switcher).
Tags
Table of Contents
- $sanitization_options : array<string|int, mixed>
- The Sanitization options and callbacks.
- $shortcodes : array<string|int, mixed>
- The ShortCodes of this plugin.
- $plugin_prefix : string
- The unique prefix of this plugin.
- $version : string
- The version of this plugin.
- __construct() : mixed
- Initialize the class and set its properties.
- data_map() : array<string|int, mixed>
- Register an array of object properties, array members to re-use as configurations.
- declare_shortcodes_add_filter() : array<string|int, mixed>
- Provide a public facing method to add ShortCodes to the TukuToi ShortCodes library
- declare_shortcodes_types_add_filter() : array<string|int, mixed>
- Provide a public facing method to add ShortCode Types to the TukuToi ShortCodes GUI.
- declare_shortcodes() : array<string|int, mixed>
- Register an array of Shortcodes of this plugin
- sanitize_options() : array<string|int, mixed>
- All Sanitization Options.
Properties
$sanitization_options
The Sanitization options and callbacks.
public
array<string|int, mixed>
$sanitization_options
Description
All Sanitization Options of this plugin and their callbacks.
Tags
$shortcodes
The ShortCodes of this plugin.
public
array<string|int, mixed>
$shortcodes
Description
All ShortCode tags, methods and labels of this plugin.
Tags
$plugin_prefix
The unique prefix of this plugin.
private
string
$plugin_prefix
Description
The string used to uniquely prefix technical functions of this plugin.
Tags
$version
The version of this plugin.
private
string
$version
Description
The current version of this plugin.
Tags
Methods
__construct()
Initialize the class and set its properties.
public
__construct() : mixed
Tags
Return
(mixed)data_map()
Register an array of object properties, array members to re-use as configurations.
public
data_map(string $map) : array<string|int, mixed>
Description
Adds Array Maps for:
- 'site_infos': Members and corresponding GUI labels of get_bloginfo.
- 'user_data': Keys of WP_User object property "data".
- 'valid_operators': Members represent valid math operatiors and their GUI label.
- 'valid_comparison': Members represent valid comparison operators and their GUI label.
- 'valid_round_constants': Members represent valid PHP round() directions and their GUI label.
- 'shortcode_types': Members represent valid ShortCode Types.
Parameters
- $map
- (string) the data map to retrieve. Accepts: 'site_infos', 'user_data', 'valid_operators', 'valid_comparison', 'valid_round_constants', 'shortcode_types'.
Tags
Return
(array<string|int, mixed>) $$map The Array Map requested.declare_shortcodes_add_filter()
Provide a public facing method to add ShortCodes to the TukuToi ShortCodes library
public
declare_shortcodes_add_filter(array<string|int, mixed> $external_shortcodes) : array<string|int, mixed>
Description
Adds ShortCodes to tkt_scs_register_shortcode
Filter.
Parameters
- $external_shortcodes
- (array<string|int, mixed>) The array of shortcodes being added.
Tags
Return
(array<string|int, mixed>) $$external_shortcodes The ShortCodes array.declare_shortcodes_types_add_filter()
Provide a public facing method to add ShortCode Types to the TukuToi ShortCodes GUI.
public
declare_shortcodes_types_add_filter(array<string|int, mixed> $external_shortcode_types) : array<string|int, mixed>
Description
Adds ShortCode Types to tkt_scs_register_shortcode_type
Filter.
Parameters
- $external_shortcode_types
- (array<string|int, mixed>) The array of Shortcode Types being added.
Tags
Return
(array<string|int, mixed>) $$external_shortcode_types The ShortCode Types array.declare_shortcodes()
Register an array of Shortcodes of this plugin
private
declare_shortcodes() : array<string|int, mixed>
Description
Multidimensional array keyed by ShortCode tagname, each holding an array of ShortCode data:
- Label
- Type
Tags
Return
(array<string|int, mixed>) $shortcodes The ShortCodes array.sanitize_options()
All Sanitization Options.
private
sanitize_options() : array<string|int, mixed>