コード例 #1
0
ファイル: SaveOperation.php プロジェクト: DavBfr/BlogMVC
 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
ファイル: save.php プロジェクト: icybee/module-sites
 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
ファイル: SubmitOperation.php プロジェクト: DavBfr/BlogMVC
 protected function process()
 {
     $rc = parent::process();
     $this->response->message = $this->format("Your comment has been saved");
     return $rc;
 }
コード例 #4
0
ファイル: save.php プロジェクト: icybee/module-nodes
 /**
  * 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
ファイル: save.php プロジェクト: icybee/module-comments
 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;
 }