public function getParentByClass($cls)
    {
        if (!is_array($cls)) $cls = array($cls);
        $d = $this;
        while ($d) {
            foreach ($cls as $i) {
                if (is_instance_of($d->componentClass, $i)) {
                    return $d;
                }
            }
            $d = $d->parent;
        }
        return $d;
    }
public function getParentByClass($cls)
    {
        if (!is_array($cls)) $cls = array($cls);
        $d = $this;
        while ($d) {
            foreach ($cls as $i) {
                if (is_instance_of($d->componentClass, $i)) {
                    return $d;
                }
            }
            $d = $d->parent;
        }
        return $d;
    }
public function getParentByClass ( $ cls ) { if ( ! is_array ( $ cls ) ) $ cls = array ( $ cls ) ; $ d = $ this ; while ( $ d ) { foreach ( $ cls as $ i ) { if ( is_instance_of ( $ d -> componentClass , $ i ) ) { return $ d ; } } $ d = $ d -> parent ; } return $ d ; }
Returns the parent matching a given component class

@param string|array component class or array of component classes
@return Kwf_Component_Data
Returns the parent matching a given component class