From a09f8740492fdb826741b66141cc27ea170285b2 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 30 Mar 2012 11:06:21 +0000 Subject: [PATCH] ReflectionClass::isSubclassOf() checks also interfaces git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324630 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/reflection/reflectionclass/implementsinterface.xml | 1 + reference/reflection/reflectionclass/issubclassof.xml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/reference/reflection/reflectionclass/implementsinterface.xml b/reference/reflection/reflectionclass/implementsinterface.xml index 8024ddb835..1392140df5 100644 --- a/reference/reflection/reflectionclass/implementsinterface.xml +++ b/reference/reflection/reflectionclass/implementsinterface.xml @@ -46,6 +46,7 @@ ReflectionClass::isInterface + ReflectionClass::isSubclassOf interface_exists Object Interfaces diff --git a/reference/reflection/reflectionclass/issubclassof.xml b/reference/reflection/reflectionclass/issubclassof.xml index 5337611877..642dc08a47 100644 --- a/reference/reflection/reflectionclass/issubclassof.xml +++ b/reference/reflection/reflectionclass/issubclassof.xml @@ -14,7 +14,8 @@ stringclass - Checks if the class is a subclass of a specified class. + Checks if the class is a subclass of a specified class or implements + a specified interface. @@ -46,6 +47,7 @@ ReflectionClass::isInterface + ReflectionClass::implementsInterface is_subclass_of get_parent_class