IWebServiceProvider
包 | system.base |
---|---|
继承 | interface IWebServiceProvider |
可用自 | 1.0 |
源码 | framework/base/interfaces.php |
IWebServiceProvider interface may be implemented by Web service provider classes.
If this interface is implemented, the provider instance will be able to intercept the remote method invocation (e.g. for logging or authentication purpose).
If this interface is implemented, the provider instance will be able to intercept the remote method invocation (e.g. for logging or authentication purpose).
公共方法
方法 | 描述 | 被定义在 |
---|---|---|
afterWebMethod() | This method is invoked after the requested remote method is invoked. | IWebServiceProvider |
beforeWebMethod() | This method is invoked before the requested remote method is invoked. | IWebServiceProvider |
方法详情
afterWebMethod()
方法
abstract public void afterWebMethod(CWebService $service)
| ||
$service | CWebService | the currently requested Web service. |
This method is invoked after the requested remote method is invoked.
beforeWebMethod()
方法
abstract public boolean beforeWebMethod(CWebService $service)
| ||
$service | CWebService | the currently requested Web service. |
{return} | boolean | whether the remote method should be executed. |
This method is invoked before the requested remote method is invoked.