Definition at line 58 of file Abstract.php.
◆ __construct()
Constructor
Setup server description
- Returns
- void
Definition at line 96 of file Abstract.php.
99 $this->_table->setOverwriteExistingMethods($this->_overwriteExistingMethods);
◆ _buildCallback()
Build callback for method signature
- Parameters
-
- Returns
- Zend_Server_Method_Callback
Definition at line 136 of file Abstract.php.
140 $callback->setType($reflection->isStatic() ?
'static' :
'instance')
141 ->
setClass($reflection->getDeclaringClass()->getName())
142 ->setMethod($reflection->getName());
144 $callback->setType(
'function')
145 ->setFunction($reflection->getName());
elseif(isset( $params[ 'redirect_parent']))
setClass($class, $namespace='', $argv=null)
◆ _buildSignature()
Build a method signature
- Parameters
-
- Returns
- Zend_Server_Method_Definition
- Exceptions
-
Definition at line 158 of file Abstract.php.
161 $name = $reflection->getName();
164 if (!$this->_overwriteExistingMethods && $this->_table->hasMethod(
$method)) {
165 #require_once 'Zend/Server/Exception.php'; 177 $prototype->setReturnType($this->
_fixType($proto->getReturnType()));
178 foreach ($proto->getParameters() as $parameter) {
180 'type' => $this->
_fixType($parameter->getType()),
181 'name' => $parameter->getName(),
182 'optional' => $parameter->isOptional(),
184 if ($parameter->isDefaultValueAvailable()) {
185 $param->setDefaultValue($parameter->getDefaultValue());
187 $prototype->addParameter($param);
189 $definition->addPrototype($prototype);
192 $definition->setObject(
$class);
194 $this->_table->addMethod($definition);
$_option $_optionId $class
_buildCallback(Zend_Server_Reflection_Function_Abstract $reflection)
if(!isset($_GET['name'])) $name
◆ _dispatch()
Dispatch method
- Parameters
-
- Returns
- mixed
Definition at line 205 of file Abstract.php.
208 $type = $callback->getType();
210 if (
'function' ==
$type) {
211 $function = $callback->getFunction();
212 return call_user_func_array($function,
$params);
215 $class = $callback->getClass();
216 $method = $callback->getMethod();
218 if (
'static' ==
$type) {
223 if (!is_object($object)) {
225 if (!empty($invokeArgs)) {
226 $reflection =
new ReflectionClass(
$class);
227 $object = $reflection->newInstanceArgs($invokeArgs);
$_option $_optionId $class
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
◆ _fixType()
Map PHP type to protocol type
- Parameters
-
- Returns
- string
◆ getFunctions()
◆ lowerCase()
static lowerCase |
( |
& |
$value, |
|
|
& |
$key |
|
) |
| |
|
static |
Lowercase a string
Lowercase's a string by reference
- Deprecated:
- Parameters
-
string | $string | value |
string | $key | |
- Returns
- string Lower cased string
Definition at line 124 of file Abstract.php.
126 trigger_error(__CLASS__ .
'::' . __METHOD__ .
'() is deprecated and will be removed in a future version', E_USER_NOTICE);
◆ $_overwriteExistingMethods
$_overwriteExistingMethods = false |
|
protected |
◆ $_table
◆ $magic_methods
Initial value:= array(
'__call',
'__clone',
'__construct',
'__destruct',
'__get',
'__isset',
'__set',
'__set_state',
'__sleep',
'__tostring',
'__unset',
'__wakeup',
)
Definition at line 64 of file Abstract.php.
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Server/Abstract.php