PHP Class Piwik\Plugin\MetadataLoader

Exibir arquivo Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
__construct ( string $pluginName ) Constructor.
getPathToLicenseFile ( ) : null | string
hasPluginJson ( )
load ( ) : array Loads plugin metadata.

Private Methods

Method Description
getDefaultPluginInformation ( )
getPathToPluginFolder ( ) : string
loadJsonMetadata ( $path )
loadPluginInfoJson ( )

Method Details

__construct() public method

Constructor.
public __construct ( string $pluginName )
$pluginName string Name of the plugin to load metadata.

getPathToLicenseFile() public method

public getPathToLicenseFile ( ) : null | string
return null | string

hasPluginJson() public method

public hasPluginJson ( )

load() public method

@see Plugin::getInformation.
public load ( ) : array
return array