for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\Comments\Admin\CommentsGridFieldBulkAction;
use SilverStripe\Comments\Model\Comment;
/**
* A {@link Handler} for bulk approving comments
*/
class ApproveHandler extends CommentHandler
{
private static $url_segment = 'approve';
$url_segment
This check marks private properties in classes that are never used. Those properties can be removed.
protected $buttonClasses = 'font-icon-tick';
protected $label = 'Approve';
* @param Comment $comment
*
* @return Comment
public function updateComment($comment)
$comment->markApproved();
return $comment;
}