1 <?php
2
3 4 5 6 7 8 9 10
11
12 namespace Icybee\Modules\Sites;
13
14 use ICanBoogie\I18n\FormattedString;
15
16 17 18
19 class SaveOperation extends \ICanBoogie\SaveOperation
20 {
21 protected function process()
22 {
23 global $core;
24
25 $rc = parent::process();
26
27 unset($core->vars['cached_sites']);
28
29 $record = $this->module->model[$rc['key']];
30
31 $this->response->message = new FormattedString
32 (
33 $rc['mode'] == 'update' ? '%title has been updated in %module.' : '%title has been created in %module.', array
34 (
35 'title' => \ICanBoogie\shorten($record->title),
36 'module' => $this->module->title
37 )
38 );
39
40 return $rc;
41 }
42 }