diff options
author | Andrew Dolgov <[email protected]> | 2012-12-23 23:05:51 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-12-23 23:05:51 +0400 |
commit | 8dcb2b47628346226b18940b5cde7849f7a24687 (patch) | |
tree | ca3ee70e34095455614f4c2c7f9d69ce9f1ed27c /include/functions.php | |
parent | 5cedb389d24861a94c1183d1562900dbe59ee3fb (diff) |
implement plugin routing masks, add example plugin
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 4 |
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)); + } + ?> |