Swat/SwatDetailsViewVerticalField.php
public function display($data, $odd)
    {
        if (!$this->visible) {
            return;
        }

        $this->odd = $odd;

        $tr_tag = new SwatHtmlTag('tr');
        $tr_tag->id = $this->id;
        $tr_tag->class = $this->getCSSClassString();

        $td_tag = new SwatHtmlTag('td');
        $td_tag->colspan = 2;

        $tr_tag->open();
        $td_tag->open();
        $this->displayHeader();
        $this->displayValue($data);
        $td_tag->close();
        $tr_tag->close();
    }
public function display($data, $odd)
    {
        if (!$this->visible) {
            return;
        }

        $this->odd = $odd;

        $tr_tag = new SwatHtmlTag('tr');
        $tr_tag->id = $this->id;
        $tr_tag->class = $this->getCSSClassString();

        $td_tag = new SwatHtmlTag('td');
        $td_tag->colspan = 2;

        $tr_tag->open();
        $td_tag->open();
        $this->displayHeader();
        $this->displayValue($data);
        $td_tag->close();
        $tr_tag->close();
    }
public function display ( $ data , $ odd ) { if ( ! $ this -> visible ) { return ; } $ this -> odd = $ odd ; $ tr_tag = new SwatHtmlTag ( 'tr' ) ; $ tr_tag -> id = $ this -> id ; $ tr_tag -> class = $ this -> getCSSClassString ( ) ; $ td_tag = new SwatHtmlTag ( 'td' ) ; $ td_tag -> colspan = 2 ; $ tr_tag -> open ( ) ; $ td_tag -> open ( ) ; $ this -> displayHeader ( ) ; $ this -> displayValue ( $ data ) ; $ td_tag -> close ( ) ; $ tr_tag -> close ( ) ; }
Displays this details view field using a data object

@param mixed $data a data object used to display the cell renderers in
this field.
@param boolean $odd whether this is an odd or even field so alternating
style can be applied.

@see SwatDetailsViewField::display()
Displays this details view field using a data object