Zepi/Web/UserInterface/src/Layout/AbstractContainer.php
public function getParentOfType($type)
    {
        if (is_a($this, $type)) {
            return $this;
        }
        
        if ($this->parent !== null) {
            return $this->parent->getParentOfType($type);
        }
        
        return false;
    }
public function getParentOfType($type)
    {
        if (is_a($this, $type)) {
            return $this;
        }
        
        if ($this->parent !== null) {
            return $this->parent->getParentOfType($type);
        }
        
        return false;
    }
public function getParentOfType ( $ type ) { if ( is_a ( $ this , $ type ) ) { return $ this ; } if ( $ this -> parent !== null ) { return $ this -> parent -> getParentOfType ( $ type ) ; } return false ; }
Returns the next parent of this container for the given type
If there is no type like that the function will return false

@access public
@param string $type
@return false|mixed
Returns the next parent of this container for the given type If there is no type like that the function will return false