Import implements Standard_Service, Registerable, Conditional

This class handles our plugin import page in the admin.

Tags
author

Barn2 Plugins info@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Standard_Service
Registerable
Conditional

Table of Contents

$plugin  : mixed
__construct()  : mixed
Constructor.
add_import_page()  : mixed
Add the Import sub menu page.
get_license_upgrade_url()  : string
Get the upgrade URL for the plugin license.
is_required()  : mixed
{@inheritdoc}
register()  : mixed
{@inheritdoc}
render()  : mixed
Render the import page.
get_action_text()  : string
Get the action text for the upgrade button.
is_valid_dla_license()  : bool
Check if the plugin license is valid and is a DLA license.

Properties

$plugin

private mixed $plugin
Tags

Methods

__construct()

Constructor.

public __construct(Licensed_Plugin $plugin) : mixed
Parameters
$plugin : Licensed_Plugin
Tags
Return values
mixed

add_import_page()

Add the Import sub menu page.

public add_import_page() : mixed
Tags
Return values
mixed

get_license_upgrade_url()

Get the upgrade URL for the plugin license.

public get_license_upgrade_url() : string
Tags
Return values
string

is_required()

{@inheritdoc}

public is_required() : mixed
Tags
Return values
mixed

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

render()

Render the import page.

public render() : mixed
Tags
Return values
mixed

get_action_text()

Get the action text for the upgrade button.

private get_action_text() : string
Tags
Return values
string

is_valid_dla_license()

Check if the plugin license is valid and is a DLA license.

private is_valid_dla_license() : bool
Tags
Return values
bool

Search results