PHP Class Fragen\GitHub_Updater\Language_Pack

Inheritance: extends Base
显示文件 Open project: afragen/github-updater

Protected Properties

Property Type Description
$repo object Variable containing the plugin/theme object.
$repo_api Variable containing the git host API object.

Public Methods

Method Description
__construct ( object $repo, object $api ) Language_Pack constructor.
pre_set_site_transient ( $transient ) : mixed Add language translations to update_plugins or update_themes transients.

Protected Methods

Method Description
run ( ) Do the Language Pack integration.

Method Details

__construct() public method

Language_Pack constructor.
public __construct ( object $repo, object $api )
$repo object Plugin/Theme object.
$api object Git host API object.

pre_set_site_transient() public method

Add language translations to update_plugins or update_themes transients.
public pre_set_site_transient ( $transient ) : mixed
$transient
return mixed

run() protected method

Do the Language Pack integration.
protected run ( )

Property Details

$repo protected_oe property

Variable containing the plugin/theme object.
protected object $repo
return object

$repo_api protected_oe property

Variable containing the git host API object.
protected $repo_api