PHP Conference Japan 2024

xmlrpc_server_register_introspection_callback

(PHP 4 >= 4.1.0, PHP 5, PHP 7)

xmlrpc_server_register_introspection_callback註冊一個 PHP 函式來產生文件

說明

xmlrpc_server_register_introspection_callback(資源 $server, 字串 $function): 布林值
警告

此函式為*實驗性*。此函式的行為、名稱和周圍的文件在未來的 PHP 版本中可能會有所變更,恕不另行通知。使用此函式需自行承擔風險。

警告

此函數目前沒有說明文件;僅提供其參數列表。

新增註解

使用者貢獻的註解 2 則註解

ronadaassoc at gmail dot com
2 年前
<?xml version='1.0'?>
<introspection version='1.0'>
<methodList>
<methodDescription name='introspection.hello'>
<author>Dan Libby</author>
<purpose>向呼叫者問好並示範自省機制的用法</purpose>
<signatures>
<signature>
<params>
<value type='string' name='name'>呼叫者的名稱</value>
</params>
<returns>
<value type='string'>向呼叫者的問候語</value>
</returns>
</signature>
</signatures>
<see><item>system.listMethods</item></see>
<examples/>
<errors>
<item>如果未指定呼叫者的名稱,則返回錯誤代碼 1</item>
</errors>
<notes>
<item>這是一個不太好的範例</item>
<item>多個註解的範例</item>
</notes>
<bugs/>
<todo/>
</methodDescription>
</methodList>
</introspection>
giunta dot gaetano at gmail dot com
3 年前
自省回呼函數應返回具有以下格式的 XML 字串

<?xml version='1.0'?>
<introspection version='1.0'>
<methodList>
<methodDescription name='introspection.hello'>
<author>Dan Libby</author>
<purpose>向呼叫者問好並示範自省機制的用法</purpose>
<signatures>
<signature>
<params>
<value type='string' name='name'>呼叫者的名稱</value>
</params>
<returns>
<value type='string'>向呼叫者的問候語</value>
</returns>
</signature>
</signatures>
<see><item>system.listMethods</item></see>
<examples/>
<errors>
<item>如果未指定呼叫者的名稱,則返回錯誤代碼 1</item>
</errors>
<notes>
<item>這是一個不太好的範例</item>
<item>多個註解的範例</item>
</notes>
<bugs/>
<todo/>
</methodDescription>
</methodList>
</introspection>
To Top