Comment on XML::XML_RPC2
| From: | Philippe Jausions | Date: | Wed, 11 May 2005 00:06:22 +0000 |
| Subject: | Comment on XML::XML_RPC2 | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-37556@lists.php.net to get a copy of this message | ||
Sérgio,
You are documenting your tutorial with the following syntax for docblock:
class EchoServer {
/**
* echoecho echoes the message received
*
* @param string Message
* @return string The echo
*/
public static function echoecho($string)
{
return $string;
}
<snip>
}
AFAIK in PEAR we use "@param string $string Message". Do you automatically strip the $string when doing the introspection of the class?
One remark about performance vs. flexibility: are you using the reflection API for each call or online during discovery?
I've also spotted a couple of PEAR CS "function blah() {" in the abstract XML_RPC2_Server class (that is the opening curly braces is on the same line as the function name...)
Otherwise, it looks like a great use of the reflection API...
-Philippe