File modules/cms/action/profile/ProfilePingAction.class.php
Last commit: Sun Mar 14 22:29:56 2021 +0100 Jan Dankert Refactoring: Clearer access check.
1 <?php 2 namespace cms\action\profile; 3 use cms\action\Action; 4 use cms\action\Method; 5 use cms\action\ProfileAction; 6 7 class ProfilePingAction extends ProfileAction implements Method { 8 9 public function view() { 10 // Only visible in API requests. 11 $this->setTemplateVar('pong',1); 12 } 13 public function post() { 14 } 15 16 public function checkAccess() { 17 return true; 18 } 19 }
Downloadmodules/cms/action/profile/ProfilePingAction.class.php
History Sun, 14 Mar 2021 22:29:56 +0100 Jan Dankert Refactoring: Clearer access check. Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.