Version_History implements Registerable, Standard_Service, Conditional
Document Version History
Tags
Interfaces, Classes and Traits
- Registerable
- Standard_Service
- Conditional
Table of Contents
- $plugin : mixed
- __construct() : mixed
- Constructor
- get_license_upgrade_url() : string
- Get the upgrade URL for the plugin license.
- is_required() : mixed
- {@inheritdoc}
- register() : mixed
- {@inheritdoc}
- render_option_after_html() : mixed
- Render the metabox.
- render_option_file_upload() : mixed
- Render the metabox.
- 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.
- render_version_history() : mixed
- Render the version history.
Properties
$plugin
private
mixed
$plugin
Tags
Methods
__construct()
Constructor
public
__construct(Licensed_Plugin $plugin) : mixed
Parameters
- $plugin : Licensed_Plugin
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_option_after_html()
Render the metabox.
public
render_option_after_html() : mixed
Tags
Return values
mixed —render_option_file_upload()
Render the metabox.
public
render_option_file_upload() : 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 —render_version_history()
Render the version history.
private
render_version_history([string $context = '' ]) : mixed
Parameters
- $context : string = ''
-
Context identifier to make IDs unique.