Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ExampleRssWidget/ExampleRssWidget.php')
-rw-r--r--plugins/ExampleRssWidget/ExampleRssWidget.php62
1 files changed, 31 insertions, 31 deletions
diff --git a/plugins/ExampleRssWidget/ExampleRssWidget.php b/plugins/ExampleRssWidget/ExampleRssWidget.php
index 0c174345ee..4fac8a6f73 100644
--- a/plugins/ExampleRssWidget/ExampleRssWidget.php
+++ b/plugins/ExampleRssWidget/ExampleRssWidget.php
@@ -1,10 +1,10 @@
<?php
/**
* Piwik - Open source web analytics
- *
+ *
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- *
+ *
* @category Piwik_Plugins
* @package Piwik_ExampleRssWidget
*/
@@ -15,22 +15,22 @@
*/
class Piwik_ExampleRssWidget extends Piwik_Plugin
{
- /**
- * Return information about this plugin.
- *
- * @see Piwik_Plugin
- *
- * @return array
- */
- public function getInformation()
- {
- return array(
- 'description' => Piwik_Translate('ExampleRssWidget_PluginDescription'),
- 'author' => 'Piwik',
- 'author_homepage' => 'http://piwik.org/',
- 'version' => '0.1',
- );
- }
+ /**
+ * Return information about this plugin.
+ *
+ * @see Piwik_Plugin
+ *
+ * @return array
+ */
+ public function getInformation()
+ {
+ return array(
+ 'description' => Piwik_Translate('ExampleRssWidget_PluginDescription'),
+ 'author' => 'Piwik',
+ 'author_homepage' => 'http://piwik.org/',
+ 'version' => '0.1',
+ );
+ }
/**
* Returns a list of registered hooks.
@@ -38,22 +38,22 @@ class Piwik_ExampleRssWidget extends Piwik_Plugin
* @return array
*/
public function getListHooksRegistered()
- {
- return array(
+ {
+ return array(
'AssetManager.getCssFiles' => 'getCssFiles',
- 'WidgetsList.add' => 'addWidgets'
+ 'WidgetsList.add' => 'addWidgets'
);
- }
+ }
+
+ /**
+ * @param Piwik_Event_Notification $notification notification object
+ */
+ public function getCssFiles($notification)
+ {
+ $cssFiles = & $notification->getNotificationObject();
- /**
- * @param Piwik_Event_Notification $notification notification object
- */
- public function getCssFiles( $notification )
- {
- $cssFiles = &$notification->getNotificationObject();
-
- $cssFiles[] = "plugins/ExampleRssWidget/templates/styles.css";
- }
+ $cssFiles[] = "plugins/ExampleRssWidget/templates/styles.css";
+ }
public function addWidgets()
{