Swat/SwatRadioTable.php
protected function displayRadioTableOption(SwatOption $option, $index)
    {
        $tr_tag = $this->getTrTag($option, $index);

        // add option-specific CSS classes from option metadata
        $classes = $this->getOptionMetadata($option, 'classes');
        if (is_array($classes)) {
            $tr_tag->class = implode(' ', $classes);
        } elseif ($classes) {
            $tr_tag->class = strval($classes);
        }

        $tr_tag->open();

        if ($option instanceof SwatFlydownDivider) {
            echo '<td class="swat-radio-table-input">';
            echo '&nbsp;';
            echo '</td><td class="swat-radio-table-label">';
            $this->displayDivider($option, $index);
            echo '</td>';
        } else {
            echo '<td class="swat-radio-table-input">';
            $this->displayOption($option, $index);
            printf(
                '</td><td id="%s" class="swat-radio-table-label">',
                $this->id . '_' . (string) $option->value . '_label'
            );

            $this->displayOptionLabel($option, $index);
            echo '</td>';
        }

        $tr_tag->close();
    }
protected function displayRadioTableOption(SwatOption $option, $index)
    {
        $tr_tag = $this->getTrTag($option, $index);

        // add option-specific CSS classes from option metadata
        $classes = $this->getOptionMetadata($option, 'classes');
        if (is_array($classes)) {
            $tr_tag->class = implode(' ', $classes);
        } elseif ($classes) {
            $tr_tag->class = strval($classes);
        }

        $tr_tag->open();

        if ($option instanceof SwatFlydownDivider) {
            echo '<td class="swat-radio-table-input">';
            echo '&nbsp;';
            echo '</td><td class="swat-radio-table-label">';
            $this->displayDivider($option, $index);
            echo '</td>';
        } else {
            echo '<td class="swat-radio-table-input">';
            $this->displayOption($option, $index);
            printf(
                '</td><td id="%s" class="swat-radio-table-label">',
                $this->id . '_' . (string) $option->value . '_label'
            );

            $this->displayOptionLabel($option, $index);
            echo '</td>';
        }

        $tr_tag->close();
    }
protected function displayRadioTableOption ( SwatOption $ option , $ index ) { $ tr_tag = $ this -> getTrTag ( $ option , $ index ) ; // add option-specific CSS classes from option metadata $ classes = $ this -> getOptionMetadata ( $ option , 'classes' ) ; if ( is_array ( $ classes ) ) { $ tr_tag -> class = implode ( ' ' , $ classes ) ; } elseif ( $ classes ) { $ tr_tag -> class = strval ( $ classes ) ; } $ tr_tag -> open ( ) ; if ( $ option instanceof SwatFlydownDivider ) { echo '<td class="swat-radio-table-input">' ; echo '&nbsp;' ; echo '</td><td class="swat-radio-table-label">' ; $ this -> displayDivider ( $ option , $ index ) ; echo '</td>' ; } else { echo '<td class="swat-radio-table-input">' ; $ this -> displayOption ( $ option , $ index ) ; printf ( '</td><td id="%s" class="swat-radio-table-label">' , $ this -> id . '_' . ( string ) $ option -> value . '_label' ) ; $ this -> displayOptionLabel ( $ option , $ index ) ; echo '</td>' ; } $ tr_tag -> close ( ) ; }
Displays a single option in this radio table

@param SwatOption $option the option to display.
@param integer $index the numeric index of the option in this list.
Starts at 0.
Displays a single option in this radio table