Package | system.web.services |
---|---|
Inheritance | class CDocumentSoapObjectWrapper |
Source Code | framework/web/services/CWebService.php |
Property | Type | Description | Defined By |
---|---|---|---|
object | object | the service provider | CDocumentSoapObjectWrapper |
Method | Description | Defined By |
---|---|---|
__call() | PHP __call magic method. | CDocumentSoapObjectWrapper |
__construct() | Constructor. | CDocumentSoapObjectWrapper |
the service provider
public mixed __call(string $name, array $arguments)
| ||
$name | string | method name |
$arguments | array | method arguments |
{return} | mixed | method return value |
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.
public void __construct(object $object)
| ||
$object | object | the service provider |
public function __construct($object)
{
$this->object=$object;
}
Constructor.
Signup or Login in order to comment.