ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
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.

References $component_factory.

30  {
31  $this->component_factory = $component_factory;
32  }
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 81 of file class.ilSoapHook.php.

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

81  : ?ilSoapMethod
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  }
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 39 of file class.ilSoapHook.php.

References XapiProxy\$plugin, and null.

Referenced by getMethodByName().

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ 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.

References XapiProxy\$plugin, and null.

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

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: