Swat/SwatInputCell.php
public function getWidget($row_identifier, $widget_id = null)
    {
        $this->getClonedWidget($row_identifier);

        if ($widget_id === null && isset($this->clones[$row_identifier])) {
            return $this->clones[$row_identifier];
        } elseif (
            $widget_id !== null &&
            isset($this->widgets[$row_identifier][$widget_id])
        ) {
            return $this->widgets[$row_identifier][$widget_id];
        }

        throw new SwatException(
            'The specified widget was not found with the ' .
                'specified row identifier.'
        );
    }
public function getWidget($row_identifier, $widget_id = null)
    {
        $this->getClonedWidget($row_identifier);

        if ($widget_id === null && isset($this->clones[$row_identifier])) {
            return $this->clones[$row_identifier];
        } elseif (
            $widget_id !== null &&
            isset($this->widgets[$row_identifier][$widget_id])
        ) {
            return $this->widgets[$row_identifier][$widget_id];
        }

        throw new SwatException(
            'The specified widget was not found with the ' .
                'specified row identifier.'
        );
    }
public function getWidget ( $ row_identifier , $ widget_id = null ) { $ this -> getClonedWidget ( $ row_identifier ) ; if ( $ widget_id === null && isset ( $ this -> clones [ $ row_identifier ] ) ) { return $ this -> clones [ $ row_identifier ] ; } elseif ( $ widget_id !== null && isset ( $ this -> widgets [ $ row_identifier ] [ $ widget_id ] ) ) { return $ this -> widgets [ $ row_identifier ] [ $ widget_id ] ; } throw new SwatException ( 'The specified widget was not found with the ' . 'specified row identifier.' ) ; }
Gets a particular widget in this input cell

@param integer $row_identifier the numeric row identifier of the widget.
@param string $widget_id optional. The unique identifier of the widget.
If no <i>$widget_id</i> is specified, the root
widget of this cell is returned for the given
<i>$row_identifier</i>.

@return SwatWidget the requested widget object.

@throws SwatException if the specified widget does not exist in this
input cell.
Gets a particular widget in this input cell