getInformation() public method

- 'description' => string // 1-2 sentence description of the plugin - 'author' => string // plugin author - 'author_homepage' => string // author homepage URL (or email "mailto:youremail@example.org") - 'homepage' => string // plugin homepage URL - 'license' => string // plugin license - 'version' => string // plugin version number; examples and 3rd party plugins must not use Version::VERSION; 3rd party plugins must increment the version number with each plugin release - 'theme' => bool // Whether this plugin is a theme (a theme is a plugin, but a plugin is not necessarily a theme)
Deprecation:
public getInformation ( ) : array
return array
示例#1
0
 public function getInformation()
 {
     $suffix = Piwik::translate('SitesManager_PiwikOffersEcommerceAnalytics', array('<a href="http://piwik.org/docs/ecommerce-analytics/" target="_blank">', '</a>'));
     $info = parent::getInformation();
     $info['description'] .= ' ' . $suffix;
     return $info;
 }
示例#2
0
 public function getInformation()
 {
     $suffix = ' Debug: <a href="' . Url::getCurrentQueryStringWithParametersModified(array('module' => 'ImageGraph', 'action' => 'index')) . '">All images</a>';
     $info = parent::getInformation();
     $info['description'] .= ' ' . $suffix;
     return $info;
 }
示例#3
0
 public function getInformation()
 {
     $info = parent::getInformation();
     $info['author'] = 'Piwik PRO';
     $info['author_homepage'] = 'http://piwik.pro';
     return $info;
 }
示例#4
0
 public function getInformation()
 {
     $suffix = ' Note: Requires the Transitions plugin enabled.';
     $info = parent::getInformation();
     $info['description'] .= ' ' . $suffix;
     return $info;
 }
示例#5
0
 public function getJavaScriptFiles()
 {
     if ($this->themeName == \Piwik\Plugin\Manager::DEFAULT_THEME) {
         return false;
     }
     $info = $this->theme->getInformation();
     if (empty($info['javascript'])) {
         return false;
     }
     $jsFiles = $info['javascript'];
     if (!is_array($jsFiles)) {
         $jsFiles = array($jsFiles);
     }
     foreach ($jsFiles as &$jsFile) {
         $jsFile = 'plugins/' . $this->theme->getPluginName() . '/' . $jsFile;
     }
     return $jsFiles;
 }
示例#6
0
 public function getInformation()
 {
     $info = parent::getInformation();
     $info['authors'] = array(array('name' => 'Piwik PRO', 'homepage' => 'http://piwik.pro'));
     return $info;
 }
示例#7
0
 public function getInformation()
 {
     $info = parent::getInformation();
     $info['description'] .= ' <br/>Required to use <a href="http://piwik.org/docs/ecommerce-analytics/">Ecommerce Analytics</a> feature!';
     return $info;
 }