Swat/SwatDetailsView.php
public function getField($id)
    {
        if (!array_key_exists($id, $this->fields_by_id)) {
            throw new SwatWidgetNotFoundException(
                "Field with an id of '{$id}' not found."
            );
        }

        return $this->fields_by_id[$id];
    }
public function getField($id)
    {
        if (!array_key_exists($id, $this->fields_by_id)) {
            throw new SwatWidgetNotFoundException(
                "Field with an id of '{$id}' not found."
            );
        }

        return $this->fields_by_id[$id];
    }
public function getField ( $ id ) { if ( ! array_key_exists ( $ id , $ this -> fields_by_id ) ) { throw new SwatWidgetNotFoundException ( "Field with an id of '{$id}' not found." ) ; } return $ this -> fields_by_id [ $ id ] ; }
Gets a field in this details view by the field's id

@param string $id the id of the field in this details-view to get.

@return SwatDetailsViewField the field in this details-view with the
specified id.

@throws SwatWidgetNotFoundException if no field with the given id exists
in this details view.
Gets a field in this details view by the field s id