Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
FileLogNotificator.php
1 <?php
2 /**
3  * Gentics Portal.Node PHP
4  * Author & Copyright (c) by Gentics Software GmbH
5  * sales@gentics.com
6  * http://www.gentics.com
7  * Licenses can be found in the LICENSE.txt file in the root-folder of this installation
8  * You must not use this software without a valid license agreement.
9  *
10  * Notificator. Works with Notification manager
11  * Write all notification to text file
12  */
14 {
15 
16  /**
17  * Write all notification to file
18  *
19  * @param Notification $notification occurred notification
20  *
21  * @return void
22  */
23  public function notify(Notification $notification)
24  {
25  Yii::log(print_r($notification->recipients, true) . "\n" . $notification->subject . ': ' . $notification->message, CLogger::LEVEL_PROFILE, 'FileLogNotificator');
26  }
27 }