Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions | Protected Attributes
Zend_Soap_Server_Proxy Class Reference

Public Member Functions

 __construct ($className, $classArgs=array())
 
 __call ($name, $arguments)
 

Protected Member Functions

 _preProcessArguments ($arguments)
 

Protected Attributes

 $_classInstance
 
 $_className
 

Detailed Description

Definition at line 23 of file Proxy.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $className,
  $classArgs = array() 
)

Constructor

Parameters
object$service

Definition at line 38 of file Proxy.php.

39  {
40  $class = new ReflectionClass($className);
41  $constructor = $class->getConstructor();
42  if ($constructor === null) {
43  $this->_classInstance = $class->newInstance();
44  } else {
45  $this->_classInstance = $class->newInstanceArgs($classArgs);
46  }
47  $this->_className = $className;
48  }
$_option $_optionId $class
Definition: date.phtml:13
if($currentSelectedMethod==$_code) $className
Definition: form.phtml:31

Member Function Documentation

◆ __call()

__call (   $name,
  $arguments 
)

Proxy for the WS-I compliant call

Parameters
string$name
string$arguments
Returns
array

Definition at line 56 of file Proxy.php.

57  {
58  $result = call_user_func_array(array($this->_classInstance, $name), $this->_preProcessArguments($arguments));
59  return array("{$name}Result"=>$result);
60  }
_preProcessArguments($arguments)
Definition: Proxy.php:67
$arguments
if(!isset($_GET['name'])) $name
Definition: log.php:14

◆ _preProcessArguments()

_preProcessArguments (   $arguments)
protected

Pre process arguments

Parameters
mixed$arguments
Returns
array

Definition at line 67 of file Proxy.php.

68  {
69  if (count($arguments) == 1 && is_object($arguments[0])) {
70  return get_object_vars($arguments[0]);
71  } else {
72  return $arguments;
73  }
74  }
$arguments

Field Documentation

◆ $_classInstance

$_classInstance
protected

Definition at line 28 of file Proxy.php.

◆ $_className

$_className
protected

Definition at line 32 of file Proxy.php.


The documentation for this class was generated from the following file: