File modules/cms/action/model/ModelSetdefaultAction.class.php
Last commit: Sat Oct 17 02:16:28 2026 +0200 Jan Dankert Refactoring: Removed empty view() and post() methods; OpenAPI cleanup, removed these unused paths.
1 <?php 2 namespace cms\action\model; 3 use cms\action\Method; 4 use cms\action\ModelAction; 5 use language\Messages; 6 7 8 class ModelSetdefaultAction extends ModelAction implements Method { 9 10 public function post() { 11 if ( !$this->userIsAdmin() ) exit(); 12 13 $this->model->setDefault(); 14 15 $this->addNoticeFor( $this->model, Messages::DONE ); 16 } 17 }
Downloadmodules/cms/action/model/ModelSetdefaultAction.class.php
History Sat, 17 Oct 2026 02:16:28 +0200 Jan Dankert Refactoring: Removed empty view() and post() methods; OpenAPI cleanup, removed these unused paths. Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.