Simple Fields API Documentation
Class

simple_fields_options_page_import_export

class simple_fields_options_page_import_export

Simple FIelds options page for import and export

Properties

$slug
$sf

Methods

__construct()

init($sf)

maybe_do_import()

string get_name()

Get name of this options page tab

output_scripts_and_styles()

print_nav_tab(string $subpage)

Print the tab for this tab

output_page()

Output contents for this options page

get_export(array $selection = array())

ajax_get_export()

maybe_download_export_file()

Check if export file should be downloaded, and if so send headers and the actual json contents

Details

at line 12
public __construct()

at line 18
public init($sf)

Parameters

$sf

at line 34
public maybe_do_import()

at line 106
public string get_name()

Get name of this options page tab

Return Value

string

at line 110
public output_scripts_and_styles()

at line 214
public print_nav_tab(string $subpage)

Print the tab for this tab

Parameters

string $subpage Name of current tab

at line 223
public output_page()

Output contents for this options page

at line 438
public get_export(array $selection = array())

Parameters

array $selection

at line 489
public ajax_get_export()

at line 514
public maybe_download_export_file()

Check if export file should be downloaded, and if so send headers and the actual json contents