Example #1
0
 public static function fromJSON($s)
 {
     $url = self::translateURL($s->url);
     //if ($s->type == 'Service')
     $service = ServiceFactory::newService($s->name, @$s->cmd, $url);
     //elseif ($s->type == 'ServiceWeb')
     //    $service = ServiceFactory::newServiceWeb($s->name,  $url);
     return $service;
 }