Swat/SwatWidget.php
final protected function getCompositeWidget($key)
    {
        $this->confirmCompositeWidgets();

        if (!array_key_exists($key, $this->composite_widgets)) {
            throw new SwatWidgetNotFoundException(
                sprintf(
                    "Composite widget with key of '%s' not found in %s. Make sure " .
                        "the composite widget was created and added to this widget.",
                    $key,
                    get_class($this)
                ),
                0,
                $key
            );
        }

        return $this->composite_widgets[$key];
    }
final protected function getCompositeWidget($key)
    {
        $this->confirmCompositeWidgets();

        if (!array_key_exists($key, $this->composite_widgets)) {
            throw new SwatWidgetNotFoundException(
                sprintf(
                    "Composite widget with key of '%s' not found in %s. Make sure " .
                        "the composite widget was created and added to this widget.",
                    $key,
                    get_class($this)
                ),
                0,
                $key
            );
        }

        return $this->composite_widgets[$key];
    }
final protected function getCompositeWidget ( $ key ) { $ this -> confirmCompositeWidgets ( ) ; if ( ! array_key_exists ( $ key , $ this -> composite_widgets ) ) { throw new SwatWidgetNotFoundException ( sprintf ( "Composite widget with key of '%s' not found in %s. Make sure " . "the composite widget was created and added to this widget." , $ key , get_class ( $ this ) ) , 0 , $ key ) ; } return $ this -> composite_widgets [ $ key ] ; }
Gets a composite widget of this widget by the composite widget's key

This is used by other methods to retrieve a specific composite widget.
This method ensures composite widgets are created before trying to
retrieve the specified widget.

@param string $key the key of the composite widget to get.

@return SwatWidget the specified composite widget.

@throws SwatWidgetNotFoundException if no composite widget with the
specified key exists in this widget.
Gets a composite widget of this widget by the composite widget s key