File modules/cms/action/url/UrlValueAction.class.php
Last commit: Wed Mar 10 23:51:22 2021 +0100 Jan Dankert Refactoring: Cleaned the Request params.
1 <?php 2 namespace cms\action\url; 3 use cms\action\Method; 4 use cms\action\UrlAction; 5 use cms\model\Permission; 6 use language\Messages; 7 8 9 class UrlValueAction extends UrlAction implements Method { 10 11 public function getRequiredPermission() { 12 return Permission::ACL_WRITE; 13 } 14 15 16 public function view() { 17 $this->setTemplateVars( $this->url->getProperties() ); 18 19 // Typ der Verknuepfung 20 $this->setTemplateVar('type' ,$this->url->getType() ); 21 $this->setTemplateVar('url' ,$this->url->url ); 22 } 23 24 25 public function post() { 26 $this->url->url = $this->request->getText('url'); 27 $this->url->save(); 28 29 $this->addNoticeFor( $this->url,Messages::SAVED ); 30 } 31 }
Downloadmodules/cms/action/url/UrlValueAction.class.php
History Wed, 10 Mar 2021 23:51:22 +0100 Jan Dankert Refactoring: Cleaned the Request params. Sat, 6 Mar 2021 03:42:38 +0100 Jan Dankert New: Better permission checks. Fri, 26 Feb 2021 01:06:01 +0100 Jan Dankert Refactoring accessing the request parameter values. Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.