[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class ConduitPingConduitAPIMethod extends ConduitAPIMethod { 4 5 public function getAPIMethodName() { 6 return 'conduit.ping'; 7 } 8 9 public function shouldRequireAuthentication() { 10 return false; 11 } 12 13 public function getMethodDescription() { 14 return 'Basic ping for monitoring or a health-check.'; 15 } 16 17 public function defineParamTypes() { 18 return array(); 19 } 20 21 public function defineReturnType() { 22 return 'string'; 23 } 24 25 public function defineErrorTypes() { 26 return array(); 27 } 28 29 protected function execute(ConduitAPIRequest $request) { 30 return php_uname('n'); 31 } 32 33 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |