From 8453b9ad1ba35c3ad63d1adce7cc4c2bbbc0692e Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Wed, 6 Nov 2019 15:29:29 +0200 Subject: [PATCH] Add supportsMethod to Alma. (#1492) --- module/VuFind/src/VuFind/ILS/Driver/Alma.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Alma.php b/module/VuFind/src/VuFind/ILS/Driver/Alma.php index fb47410e6c2..c625a3aa647 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Alma.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Alma.php @@ -1606,6 +1606,23 @@ class Alma extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterface } } + /** + * Helper method to determine whether or not a certain method can be + * called on this driver. Required method for any smart drivers. + * + * @param string $method The name of the called method. + * @param array $params Array of passed parameters + * + * @return bool True if the method can be called with the given parameters, + * false otherwise. + * + * @SuppressWarnings(PHPMD.UnusedFormalParameter) + */ + public function supportsMethod($method, $params) + { + return is_callable([$this, $method]); + } + /** * Get the inventory types to be displayed. Possible values are: * p_avail,e_avail,d_avail -- GitLab