ProfilePingAction.class.php (380B)
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 }