예제 #1
0
 public function ping($api, $args)
 {
     if (isset($args['sub_method']) && $args['sub_method'] == 'whattimeisit') {
         require_once 'include/SugarDateTime.php';
         $dt = new SugarDateTime();
         $td = new TimeDate();
         return $td->asIso($dt);
     }
     // Just a normal ping request
     return 'pong';
 }