X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=include%2Ffunctions.php;h=b338bde5bc5eb468c43d99db34a61c51a68268c7;hb=8dcb2b47628346226b18940b5cde7849f7a24687;hp=a4caf9fde306e9464b5d6dbec96d9c4dc7453c3d;hpb=5cedb389d24861a94c1183d1562900dbe59ee3fb;p=tt-rss.git diff --git a/include/functions.php b/include/functions.php index a4caf9fd..b338bde5 100644 --- a/include/functions.php +++ b/include/functions.php @@ -5576,4 +5576,8 @@ return $rc; } + function implements_interface($class, $interface) { + return in_array($interface, class_implements($class)); + } + ?>