summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-12-23 23:05:51 +0400
committerAndrew Dolgov <[email protected]>2012-12-23 23:05:51 +0400
commit8dcb2b47628346226b18940b5cde7849f7a24687 (patch)
treeca3ee70e34095455614f4c2c7f9d69ce9f1ed27c /include/functions.php
parent5cedb389d24861a94c1183d1562900dbe59ee3fb (diff)
implement plugin routing masks, add example plugin
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php4
1 files changed, 4 insertions, 0 deletions
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));
+ }
+
?>