ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilSoapHook.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
26 {
28 
29  public function __construct(ilComponentFactory $component_factory)
30  {
31  $this->component_factory = $component_factory;
32  }
33 
39  public function getSoapMethods(): 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  }
53 
59  public function getWsdlTypes(): 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  }
73 
74 
81  public function getMethodByName(string $name): ?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  }
88 }
getName()
Get the name of the method.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getSoapMethods()
Get all registered soap methods over all SOAP plugins.
Class ilSoapHook.
__construct(ilComponentFactory $component_factory)
getWsdlTypes()
Get all registered WSDL types over all SOAP plugins.
getMethodByName(string $name)
Get a registered soap method by name.
ilComponentFactory $component_factory