foreach ($signature['params'] as $param) { $paramTypes[] = self::extractJavascriptType($param); } return array(array_merge(array($returnType), $paramTypes)); } /** * This method returns a text description of a particular method. * The method takes one parameter, a string. Its value is the name of * the jsonrpc method about which information is being requested. * The result is a string. The value of that string is a text description, * for human use, of the method in question. * @param string $method The name of the method * @return string The documentation text of the method. */ public function method_methodHelp($method) { $this->checkServiceMethod($method); $method = new ReflectionMethod($this->getClassName(), JsonRpcMethodPrefix . $method); $docComment = $method->getDocComment(); $docComment = str_replace(array(" *", "/**", "*/"), "", $docComment); return $docComment; // $signature = self::analyzeDocComment( $docComment ); // return $signature['doc']; } } /** * add capability */ require_once dirname(__FILE__) . "/services/System.php"; class_System::getInstance()->addCapability("introspection", "http://qooxdoo.org/documentation/json_rpc_introspection", "0.1", array(), array("listMethods", "methodSignature", "methodHelp"));
/** * Return the list of capabilities- * @public */ public function method_getCapabilities() { $_this = class_System::getInstance(); return $_this->capabilities; }