public static function getComponentClassesByParentClass($class)
    {
        if (!is_array($class)) $class = array($class);

        static $prefix;
        $cacheId = 'cclsbpc-'.implode('-', $class).'-'.Kwf_Component_Data_Root::getComponentClass();
        $ret = Kwf_Cache_SimpleStatic::fetch($cacheId, $success);
        if ($success) {
            return $ret;
        }
        $ret = array();
        foreach (Kwc_Abstract::getComponentClasses() as $c) {
            if (in_array($c, $class) || in_array((strpos($c, '.') ? substr($c, 0, strpos($c, '.')) : $c), $class)) {
                $ret[] = $c;
                continue;
            }
            foreach (Kwc_Abstract::getParentClasses($c) as $p) {
                if (in_array($p, $class)) {
                    $ret[] = $c;
                    break;
                }
            }
        }
        Kwf_Cache_SimpleStatic::add($cacheId, $ret);
        return $ret;
    }
public static function getComponentClassesByParentClass($class)
    {
        if (!is_array($class)) $class = array($class);

        static $prefix;
        $cacheId = 'cclsbpc-'.implode('-', $class).'-'.Kwf_Component_Data_Root::getComponentClass();
        $ret = Kwf_Cache_SimpleStatic::fetch($cacheId, $success);
        if ($success) {
            return $ret;
        }
        $ret = array();
        foreach (Kwc_Abstract::getComponentClasses() as $c) {
            if (in_array($c, $class) || in_array((strpos($c, '.') ? substr($c, 0, strpos($c, '.')) : $c), $class)) {
                $ret[] = $c;
                continue;
            }
            foreach (Kwc_Abstract::getParentClasses($c) as $p) {
                if (in_array($p, $class)) {
                    $ret[] = $c;
                    break;
                }
            }
        }
        Kwf_Cache_SimpleStatic::add($cacheId, $ret);
        return $ret;
    }
public static function getComponentClassesByParentClass ( $ class ) { if ( ! is_array ( $ class ) ) $ class = array ( $ class ) ; static $ prefix ; $ cacheId = 'cclsbpc-' . implode ( '-' , $ class ) . '-' . Kwf_Component_Data_Root :: getComponentClass ( ) ; $ ret = Kwf_Cache_SimpleStatic :: fetch ( $ cacheId , $ success ) ; if ( $ success ) { return $ ret ; } $ ret = array ( ) ; foreach ( Kwc_Abstract :: getComponentClasses ( ) as $ c ) { if ( in_array ( $ c , $ class ) || in_array ( ( strpos ( $ c , '.' ) ? substr ( $ c , 0 , strpos ( $ c , '.' ) ) : $ c ) , $ class ) ) { $ ret [ ] = $ c ; continue ; } foreach ( Kwc_Abstract :: getParentClasses ( $ c ) as $ p ) { if ( in_array ( $ p , $ class ) ) { $ ret [ ] = $ c ; break ; } } } Kwf_Cache_SimpleStatic :: add ( $ cacheId , $ ret ) ; return $ ret ; }
Returns componentClasses that match a given class in their inheritance chain

Fast, as the result is static and will be cached

@param string
@return string[]
Returns componentClasses that match a given class in their inheritance chain