for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\Blog\Model;
use SilverStripe\ORM\DataExtension;
/**
* Customise blog post to support comment notifications.
*
* Extends {@see BlogPost} with extensions to {@see CommentNotifiable}.
*/
class BlogPostNotifications extends DataExtension
{
* Notify all authors of notifications.
* @param SS_List $list
* @param mixed $comment
public function updateNotificationRecipients(&$list, &$comment)
$comment
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$list = $this->owner->Authors();
}
* Update comment to include the page title.
* @param string $subject
* @param Comment $comment
* @param Member|string $recipient
public function updateNotificationSubject(&$subject, &$comment, &$recipient)
$recipient
$subject = sprintf('A new comment has been posted on %s', $this->owner->Title);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.