Swat/SwatContainer.php
public function packEnd(SwatWidget $widget)
    {
        if ($widget->parent !== null) {
            throw new SwatException(
                'Attempting to add a widget that already has a parent.'
            );
        }

        $this->children[] = $widget;
        $widget->parent = $this;

        if ($widget->id !== null) {
            $this->children_by_id[$widget->id] = $widget;
        }

        $this->sendAddNotifySignal($widget);
    }
public function packEnd(SwatWidget $widget)
    {
        if ($widget->parent !== null) {
            throw new SwatException(
                'Attempting to add a widget that already has a parent.'
            );
        }

        $this->children[] = $widget;
        $widget->parent = $this;

        if ($widget->id !== null) {
            $this->children_by_id[$widget->id] = $widget;
        }

        $this->sendAddNotifySignal($widget);
    }
public function packEnd ( SwatWidget $ widget ) { if ( $ widget -> parent !== null ) { throw new SwatException ( 'Attempting to add a widget that already has a parent.' ) ; } $ this -> children [ ] = $ widget ; $ widget -> parent = $ this ; if ( $ widget -> id !== null ) { $ this -> children_by_id [ $ widget -> id ] = $ widget ; } $ this -> sendAddNotifySignal ( $ widget ) ; }
Adds a widget to end

Adds a widget to the end of the list of widgets in this container.

@param SwatWidget $widget a reference to the widget to add.
Adds a widget to end