Swat/SwatWidgetCellRenderer.php
public function getWidget($replicator_id, $widget_id = null)
    {
        $widget = null;

        if ($widget_id === null) {
            if (isset($this->widgets[$replicator_id])) {
                $widget = current($this->widgets[$replicator_id]);
            }
        } else {
            if (isset($this->widgets[$replicator_id][$widget_id])) {
                $widget = $this->widgets[$replicator_id][$widget_id];
            }
        }

        return $widget;
    }
public function getWidget($replicator_id, $widget_id = null)
    {
        $widget = null;

        if ($widget_id === null) {
            if (isset($this->widgets[$replicator_id])) {
                $widget = current($this->widgets[$replicator_id]);
            }
        } else {
            if (isset($this->widgets[$replicator_id][$widget_id])) {
                $widget = $this->widgets[$replicator_id][$widget_id];
            }
        }

        return $widget;
    }
public function getWidget ( $ replicator_id , $ widget_id = null ) { $ widget = null ; if ( $ widget_id === null ) { if ( isset ( $ this -> widgets [ $ replicator_id ] ) ) { $ widget = current ( $ this -> widgets [ $ replicator_id ] ) ; } } else { if ( isset ( $ this -> widgets [ $ replicator_id ] [ $ widget_id ] ) ) { $ widget = $ this -> widgets [ $ replicator_id ] [ $ widget_id ] ; } } return $ widget ; }
Retrieves a reference to a replicated widget

@param string $replicator_id the replicator id of the replicated widget
@param string $widget_id the unique id of the original widget, or null
to get the root

@return SwatWidget a reference to the replicated widget, or null if the
widget is not found.
Retrieves a reference to a replicated widget