1 <?php
2
3 /*
4 * This file is part of the Icybee package.
5 *
6 * (c) Olivier Laviale <olivier.laviale@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Icybee\Modules\Comments;
13
14 class DeleteBlock extends \Icybee\DeleteBlock
15 {
16 protected function get_record_name()
17 {
18 return \ICanBoogie\shorten($this->record->contents, 32, 1);
19 }
20
21 protected function render_preview(\ICanBoogie\ActiveRecord $record)
22 {
23 return \ICanBoogie\escape($record->contents);
24 }
25 }
26