IXR_IntrospectionServer::methodSignature()
Метод класса: IXR_IntrospectionServer{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$IXR_IntrospectionServer = new IXR_IntrospectionServer(); $IXR_IntrospectionServer->methodSignature( $method );
- $method (обязательный)
- -
Код IXR_IntrospectionServer::methodSignature() IXR IntrospectionServer::methodSignature WP 6.7.1
function methodSignature($method) { if (!$this->hasMethod($method)) { return new IXR_Error(-32601, 'server error. requested method "'.$method.'" not specified.'); } // We should be returning an array of types $types = $this->signatures[$method]; $return = array(); foreach ($types as $type) { switch ($type) { case 'string': $return[] = 'string'; break; case 'int': case 'i4': $return[] = 42; break; case 'double': $return[] = 3.1415; break; case 'dateTime.iso8601': $return[] = new IXR_Date(time()); break; case 'boolean': $return[] = true; break; case 'base64': $return[] = new IXR_Base64('base64'); break; case 'array': $return[] = array('array'); break; case 'struct': $return[] = array('struct' => 'struct'); break; } } return $return; }