From 8dcb2b47628346226b18940b5cde7849f7a24687 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 23 Dec 2012 23:05:51 +0400 Subject: implement plugin routing masks, add example plugin --- include/functions.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/functions.php b/include/functions.php index a4caf9fde..b338bde5b 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)); + } + ?> -- cgit v1.2.3