Zepi/Web/UserInterface/src/Layout/AbstractContainer.php
public function searchPartByKeyAndType($key, $type = '\\Zepi\\Web\\UserInterface\\Layout\\AbstractContainer')
    {
        foreach ($this->parts as $part) {
            if ((is_a($part, $type) || is_subclass_of($part, $type)) && $part->getKey() === $key) {
                return $part;
            }
            
            $result = $part->searchPartByKeyAndType($key, $type);
            if ($result !== false) {
                return $result;
            }
        }
        
        return false;
    }
public function searchPartByKeyAndType($key, $type = '\\Zepi\\Web\\UserInterface\\Layout\\AbstractContainer')
    {
        foreach ($this->parts as $part) {
            if ((is_a($part, $type) || is_subclass_of($part, $type)) && $part->getKey() === $key) {
                return $part;
            }
            
            $result = $part->searchPartByKeyAndType($key, $type);
            if ($result !== false) {
                return $result;
            }
        }
        
        return false;
    }
public function searchPartByKeyAndType ( $ key , $ type = '\\Zepi\\Web\\UserInterface\\Layout\\AbstractContainer' ) { foreach ( $ this -> parts as $ part ) { if ( ( is_a ( $ part , $ type ) || is_subclass_of ( $ part , $ type ) ) && $ part -> getKey ( ) === $ key ) { return $ part ; } $ result = $ part -> searchPartByKeyAndType ( $ key , $ type ) ; if ( $ result !== false ) { return $ result ; } } return false ; }
Returns the object for the given key and type or false
if the object doesn't exists.

@access public
@param string $key
@param string $type
@return false|mixed
Returns the object for the given key and type or false if the object doesn t exists .