Skip to content

Commit

Permalink
refs matomo-org#4179 added example
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed Oct 26, 2013
1 parent eb7370f commit 442185c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
namespace Piwik;

/**
* Notification class.
*
* Example:
* ```
* $notification = new \Piwik\Notification('My Error Message');
* $notification->context = Notification::CONTEXT_ERROR;
* \Piwik\Notification\Manager::notify('pluginname_id', $notification);
* ```
*
* @package Piwik
* @subpackage Notification
* @api
Expand Down

0 comments on commit 442185c

Please sign in to comment.