WpvConfigGenerator

class WpvConfigGenerator

Methods

Initialize the generator

__construct(string $name, array $options) 

Arguments

$name

string

$options

array

definitions for the config page

Save the current page config

save_config() 

Single options row template

tpl(string $template, array $value) 

Arguments

$template

string

template name

$value

array

options row config

Renders the option page

render() 

Prints the templates for the Backbone.js-powered parts of our admin

print_templates() 
static

Auto fill <select> options

get_select_target_config(string $type) : array
static

Arguments

$type

string

autofill type

Response

array

options list

Auto fill <select> options

target_config(string $type) : array
static

Arguments

$type

string

autofill type

Response

array

options list

Properties

Options page name

name : string
var

Type(s)

string

Options page config

options : array
var

Type(s)

array