Properties

$_instance

$_instance : object

The singleton instance of the class

Type

object

$options

$options : object

An object of redactor options

Type

object

$_model

$_model : object

A handle to the RedactorModel instance

Type

object

$defaults

$defaults : array

Type

array — Defaults for options and their types for verification

Methods

get_instance()

get_instance() : \plugin

Gets a singleton of this plugin

Retrieves or creates the plugin singleton.

Returns

\plugin —

singleton

get_options()

get_options() : array

A helper function to return the redactor_options for classes to use.

Returns

array —

redactor options

sanitizeWithDefaults()

sanitizeWithDefaults( $options) : array

Sanitizes user input when parsing option uploads based on defaults and option types.

Parameters

$options

Returns

array —

Sanitized options

registerSettings()

registerSettings()

create_admin_page()

create_admin_page() : void

Options page callback. Echos the rendering of the options page.

add_plugin_options_page()

add_plugin_options_page() : void

Registers the options page with the Wordpress settings menu.

render_redact_wholeword()

render_redact_wholeword()

Prints the HTML string to render the options.

render_redact_posts()

render_redact_posts()

Prints the HTML string to render the post options.

render_redact_comments()

render_redact_comments()

Prints the HTML string to render the comment options

render_rule_table()

render_rule_table()

Prints the HTML string to render the rule table.

__construct()

__construct() : void

Private constructor to keep the options page a singleton class.