ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 9 of file class.ilSoapHook.php.

Constructor & Destructor Documentation

◆ __construct()

ilSoapHook::__construct ( ilComponentFactory  $component_factory)

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

References $component_factory.

14  {
15  $this->component_factory = $component_factory;
16  }
ilComponentFactory $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 65 of file class.ilSoapHook.php.

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

65  : ?ilSoapMethod
66  {
67  $array = array_filter($this->getSoapMethods(), static function (ilSoapMethod $method) use ($name) {
68  return ($method->getName() === $name);
69  });
70  return array_pop($array);
71  }
getName()
Get the name of the method.
getSoapMethods()
Get all registered soap methods over all SOAP plugins.
+ 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 23 of file class.ilSoapHook.php.

References XapiProxy\$plugin.

Referenced by getMethodByName().

23  : array
24  {
25  static $methods = null;
26  if ($methods !== null) {
27  return $methods;
28  }
29  $methods = array();
30  foreach ($this->component_factory->getActivePluginsInSlot('soaphk') as $plugin) {
31  foreach ($plugin->getSoapMethods() as $method) {
32  $methods[] = $method;
33  }
34  }
35  return $methods;
36  }
+ 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 43 of file class.ilSoapHook.php.

References XapiProxy\$plugin.

43  : array
44  {
45  static $types = null;
46  if ($types !== null) {
47  return $types;
48  }
49  $types = array();
50  foreach ($this->component_factory->getActivePluginsInSlot('soaphk') as $plugin) {
51  foreach ($plugin->getWsdlTypes() as $type) {
52  $types[] = $type;
53  }
54  }
55  return $types;
56  }

Field Documentation

◆ $component_factory

ilComponentFactory ilSoapHook::$component_factory
protected

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

Referenced by __construct().


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