Swat/SwatDetailsViewField.php
public function displayValue($data)
    {
        if (count($this->renderers) === 0) {
            throw new SwatException(
                'No renderer has been provided for this field.'
            );
        }

        $sensitive = $this->view->isSensitive();

        // Set the properties of the renderers to the value of the data field.
        foreach ($this->renderers as $renderer) {
            $this->renderers->applyMappingsToRenderer($renderer, $data);
            $renderer->sensitive = $renderer->sensitive && $sensitive;
        }

        $this->displayRenderers($data);
    }
public function displayValue($data)
    {
        if (count($this->renderers) === 0) {
            throw new SwatException(
                'No renderer has been provided for this field.'
            );
        }

        $sensitive = $this->view->isSensitive();

        // Set the properties of the renderers to the value of the data field.
        foreach ($this->renderers as $renderer) {
            $this->renderers->applyMappingsToRenderer($renderer, $data);
            $renderer->sensitive = $renderer->sensitive && $sensitive;
        }

        $this->displayRenderers($data);
    }
public function displayValue ( $ data ) { if ( count ( $ this -> renderers ) === 0 ) { throw new SwatException ( 'No renderer has been provided for this field.' ) ; } $ sensitive = $ this -> view -> isSensitive ( ) ; // Set the properties of the renderers to the value of the data field. foreach ( $ this -> renderers as $ renderer ) { $ this -> renderers -> applyMappingsToRenderer ( $ renderer , $ data ) ; $ renderer -> sensitive = $ renderer -> sensitive && $ sensitive ; } $ this -> displayRenderers ( $ data ) ; }
Displays the value of this details view field

The properties of the cell renderers are set from the data object
through the datafield property mappings.

@param mixed $data the data object to display in this field.
Displays the value of this details view field