public static function doesClassExtendClass($childClassName, $parentClassName) {

        $reflectionClass = new \ReflectionClass ($childClassName);

        do {
            if ($reflectionClass->getName() == $parentClassName)
                return true;
            $reflectionClass = $reflectionClass->getParentClass();
        } while ($reflectionClass);

        // Assume false if we get this far
        return false;
    }
public static function doesClassExtendClass($childClassName, $parentClassName) {

        $reflectionClass = new \ReflectionClass ($childClassName);

        do {
            if ($reflectionClass->getName() == $parentClassName)
                return true;
            $reflectionClass = $reflectionClass->getParentClass();
        } while ($reflectionClass);

        // Assume false if we get this far
        return false;
    }
public static function doesClassExtendClass ( $ childClassName , $ parentClassName ) { $ reflectionClass = new \ ReflectionClass ( $ childClassName ) ; do { if ( $ reflectionClass -> getName ( ) == $ parentClassName ) return true ; $ reflectionClass = $ reflectionClass -> getParentClass ( ) ; } while ( $ reflectionClass ) ; // Assume false if we get this far return false ; }
Check to see whether or not a given child class extends a given parent class

@param $childClassName
@param $parentClassName
Check to see whether or not a given child class extends a given parent class