Пример #1
0
 protected function process()
 {
     $rc = parent::process();
     $this->response->message = $this->format($rc['mode'] == 'update' ? '%name has been updated.' : '%name has been created.', ['name' => $this->record->name]);
     $this->response->location = $this->app->routes['admin:posts:index'];
     return $rc;
 }
Пример #2
0
 protected function process()
 {
     global $core;
     $rc = parent::process();
     unset($core->vars['cached_sites']);
     $record = $this->module->model[$rc['key']];
     $this->response->message = new FormattedString($rc['mode'] == 'update' ? '%title has been updated in %module.' : '%title has been created in %module.', array('title' => \ICanBoogie\shorten($record->title), 'module' => $this->module->title));
     return $rc;
 }
Пример #3
0
 protected function process()
 {
     $rc = parent::process();
     $this->response->message = $this->format("Your comment has been saved");
     return $rc;
 }
Пример #4
0
 /**
  * Overrides the method to provide a nicer log message.
  */
 protected function process()
 {
     $rc = parent::process();
     $this->response->message = new FormattedString($rc['mode'] == 'update' ? '%title has been updated in :module.' : '%title has been created in :module.', array('title' => \ICanBoogie\shorten($this->record->title), 'module' => $this->module->title));
     return $rc;
 }
Пример #5
0
 protected function process()
 {
     $rc = parent::process();
     if (!$this->key) {
         $this->notify($rc['key']);
         if ($this->properties['status'] == 'approved') {
             $comment = $this->module->model[$rc['key']];
             $this->response->location = $comment->url;
         }
     }
     return $rc;
 }