File modules/cms/action/project/ProjectAdvancedAction.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\project; 3 use cms\action\Method; 4 use cms\action\ProjectAction; 5 use language\Messages; 6 use util\exception\ValidationException; 7 8 class ProjectAdvancedAction extends ProjectAction implements Method { 9 10 public function post() { 11 switch( $this->request->getText('type') ) 12 { 13 case 'check_files': 14 // Konsistenzprüfungen 15 $log = $this->project->checkLostFiles(); 16 17 $this->addNoticeFor($this->project,Messages::DONE, [], implode("\n",$log) ); 18 break; 19 20 case 'check_limit': 21 // Alte Versionen löschen. 22 $this->project->checkLimit(); 23 $this->addNoticeFor($this->project,Messages::DONE); 24 break; 25 26 default: 27 throw new ValidationException('type'); 28 } 29 } 30 }
Downloadmodules/cms/action/project/ProjectAdvancedAction.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. Sun, 14 Mar 2021 23:51:49 +0100 Jan Dankert Refactoring: Using the ValidationException where possible. Wed, 3 Mar 2021 23:48:49 +0100 Jan Dankert Removed menu entry for 'maintenance'.