PHP Class PluginInfo_1_3, bp-reply-by-email

Author: Janis Elsts
Show file Open project: r-a-y/bp-reply-by-email Class Usage Examples

Public Properties

Property Type Description
$author
$author_homepage
$download_url
$downloaded
$homepage
$id
$last_updated
$name See the relevant docs for a description of their meaning.
$num_ratings
$rating
$requires
$sections
$slug
$tested
$upgrade_notice
$version

Public Methods

Method Description
fromJson ( string $json, boolean $triggerErrors = false ) : PluginInfo | null Create a new instance of PluginInfo from JSON-encoded plugin info returned by an external update API.
toWpFormat ( ) : object Transform plugin info into the format used by the native WordPress.org API

Method Details

fromJson() public static method

Create a new instance of PluginInfo from JSON-encoded plugin info returned by an external update API.
public static fromJson ( string $json, boolean $triggerErrors = false ) : PluginInfo | null
$json string Valid JSON string representing plugin info.
$triggerErrors boolean
return PluginInfo | null New instance of PluginInfo, or NULL on error.

toWpFormat() public method

Transform plugin info into the format used by the native WordPress.org API
public toWpFormat ( ) : object
return object

Property Details

$author public property

public $author

$author_homepage public property

public $author_homepage

$download_url public property

public $download_url

$downloaded public property

public $downloaded

$homepage public property

public $homepage

$id public property

public $id

$last_updated public property

public $last_updated

$name public property

See the relevant docs for a description of their meaning.
public $name

$num_ratings public property

public $num_ratings

$rating public property

public $rating

$requires public property

public $requires

$sections public property

public $sections

$slug public property

public $slug

$tested public property

public $tested

$upgrade_notice public property

public $upgrade_notice

$version public property

public $version