ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSoapHook Class Reference

Class ilSoapHook. More...

+ Collaboration diagram for ilSoapHook:

Public Member Functions

 __construct (ilComponentFactory $component_factory)
 
 getSoapMethods ()
 Get all registered soap methods over all SOAP plugins. More...
 
 getWsdlTypes ()
 Get all registered WSDL types over all SOAP plugins. More...
 
 getMethodByName (string $name)
 Get a registered soap method by name. More...
 

Protected Attributes

ilComponentFactory $component_factory
 

Detailed Description

Class ilSoapHook.

Author
Stefan Wanzenried sw@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 25 of file class.ilSoapHook.php.

Constructor & Destructor Documentation

◆ __construct()

ilSoapHook::__construct ( ilComponentFactory  $component_factory)

Definition at line 29 of file class.ilSoapHook.php.

30 {
31 $this->component_factory = $component_factory;
32 }
ilComponentFactory $component_factory

References $component_factory.

Member Function Documentation

◆ getMethodByName()

ilSoapHook::getMethodByName ( string  $name)

Get a registered soap method by name.

Parameters
string$name
Returns
ilSoapMethod|null

Definition at line 81 of file class.ilSoapHook.php.

82 {
83 $array = array_filter($this->getSoapMethods(), static function (ilSoapMethod $method) use ($name) {
84 return ($method->getName() === $name);
85 });
86 return array_pop($array);
87 }
getSoapMethods()
Get all registered soap methods over all SOAP plugins.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getName()
Get the name of the method.

References ilSoapMethod\getName(), and getSoapMethods().

+ Here is the call graph for this function:

◆ getSoapMethods()

ilSoapHook::getSoapMethods ( )

Get all registered soap methods over all SOAP plugins.

Returns
ilSoapMethod[]

Definition at line 39 of file class.ilSoapHook.php.

39 : array
40 {
41 static $methods = null;
42 if ($methods !== null) {
43 return $methods;
44 }
45 $methods = array();
46 foreach ($this->component_factory->getActivePluginsInSlot('soaphk') as $plugin) {
47 foreach ($plugin->getSoapMethods() as $method) {
48 $methods[] = $method;
49 }
50 }
51 return $methods;
52 }

References XapiProxy\$plugin.

Referenced by getMethodByName().

+ Here is the caller graph for this function:

◆ getWsdlTypes()

ilSoapHook::getWsdlTypes ( )

Get all registered WSDL types over all SOAP plugins.

Returns
ilWsdlType[]

Definition at line 59 of file class.ilSoapHook.php.

59 : array
60 {
61 static $types = null;
62 if ($types !== null) {
63 return $types;
64 }
65 $types = array();
66 foreach ($this->component_factory->getActivePluginsInSlot('soaphk') as $plugin) {
67 foreach ($plugin->getWsdlTypes() as $type) {
68 $types[] = $type;
69 }
70 }
71 return $types;
72 }

References XapiProxy\$plugin.

Field Documentation

◆ $component_factory

ilComponentFactory ilSoapHook::$component_factory
protected

Definition at line 27 of file class.ilSoapHook.php.

Referenced by __construct().


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