CDocumentSoapObjectWrapper
包 | system.web.services |
---|---|
继承 | class CDocumentSoapObjectWrapper |
源码 | framework/web/services/CWebService.php |
CDocumentSoapObjectWrapper is a wrapper class internally used
when generatorConfig contains bindingStyle key set to document value.
公共方法
方法 | 描述 | 被定义在 |
---|---|---|
__call() | PHP __call magic method. | CDocumentSoapObjectWrapper |
__construct() | Constructor. | CDocumentSoapObjectWrapper |
属性详情
object
属性
public object $object;
the service provider
方法详情
__call()
方法
public mixed __call(string $name, array $arguments)
| ||
$name | string | method name |
$arguments | array | method arguments |
{return} | mixed | method return value |
源码: framework/web/services/CWebService.php#345 (显示)
public function __call($name,$arguments)
{
if (is_array($arguments) && isset($arguments[0]))
{
$result = call_user_func_array(array($this->object, $name), (array)$arguments[0]);
}
else
{
$result = call_user_func_array(array($this->object, $name), $arguments);
}
return $result === null ? $result : array($name . 'Result' => $result);
}
PHP __call magic method. This method calls the service provider to execute the actual logic.
__construct()
方法
public void __construct(object $object)
| ||
$object | object | the service provider |
源码: framework/web/services/CWebService.php#333 (显示)
public function __construct($object)
{
$this->object=$object;
}
Constructor.