src/CMSField.php
public static function getParentClasses($className) {
        $result = array();
        $class = new \ReflectionClass($className);
        if( false === $class ) {
            return $result;
        }
        do {
            $name = $class->getName();
            $result[] = $name;
            $class = $class->getParentClass();
        } while( false !== $class );
        return $result;
    }
public static function getParentClasses($className) {
        $result = array();
        $class = new \ReflectionClass($className);
        if( false === $class ) {
            return $result;
        }
        do {
            $name = $class->getName();
            $result[] = $name;
            $class = $class->getParentClass();
        } while( false !== $class );
        return $result;
    }
public static function getParentClasses ( $ className ) { $ result = array ( ) ; $ class = new \ ReflectionClass ( $ className ) ; if ( false === $ class ) { return $ result ; } do { $ name = $ class -> getName ( ) ; $ result [ ] = $ name ; $ class = $ class -> getParentClass ( ) ; } while ( false !== $ class ) ; return $ result ; }
Get all class names of passed class
@param $className
@return array
Get all class names of passed class