Piwik\Plugins\Marketplace\Api\Client::getPluginInfo PHP Метод

getPluginInfo() публичный Метод

public getPluginInfo ( $name )
    public function getPluginInfo($name)
    {
        $action = sprintf('plugins/%s/info', $name);
        $plugin = $this->fetch($action, array());
        if (!empty($plugin) && $this->shouldIgnorePlugin($plugin)) {
            return;
        }
        return $plugin;
    }

Usage Example

Пример #1
0
 /**
  * @throws PluginInstallerException
  */
 private function makeSurePluginNameIsValid()
 {
     try {
         $pluginDetails = $this->marketplaceClient->getPluginInfo($this->pluginName);
     } catch (\Exception $e) {
         throw new PluginInstallerException($e->getMessage());
     }
     if (empty($pluginDetails)) {
         throw new PluginInstallerException('This plugin was not found in the Marketplace.');
     }
 }
All Usage Examples Of Piwik\Plugins\Marketplace\Api\Client::getPluginInfo