public static function getComponentClassByParentClass($class)
    {
        $ret = self::getComponentClassesByParentClass($class);
        if (count($ret) != 1) {
            if (!$ret) {
                throw new Kwf_Exception("No Component with class '$class' found");
            }
            throw new Kwf_Exception("More then one component with class '$class' found, there should exist only one");
        }
        return $ret[0];
    }
public static function getComponentClassByParentClass($class)
    {
        $ret = self::getComponentClassesByParentClass($class);
        if (count($ret) != 1) {
            if (!$ret) {
                throw new Kwf_Exception("No Component with class '$class' found");
            }
            throw new Kwf_Exception("More then one component with class '$class' found, there should exist only one");
        }
        return $ret[0];
    }
public static function getComponentClassByParentClass ( $ class ) { $ ret = self :: getComponentClassesByParentClass ( $ class ) ; if ( count ( $ ret ) != 1 ) { if ( ! $ ret ) { throw new Kwf_Exception ( "No Component with class '$class' found" ) ; } throw new Kwf_Exception ( "More then one component with class '$class' found, there should exist only one" ) ; } return $ ret [ 0 ] ; }
Returns a componentClass that match a given class in their inheritance chain

Fast, as the result is static and will be cached

will throw an error if multiple are found

@param string
@return string
Returns a componentClass that match a given class in their inheritance chain