Swat/SwatTableViewColumn.php
protected function setupRenderers($data)
    {
        if (count($this->renderers) === 0) {
            throw new SwatException(
                'No renderer has been provided for this column.'
            );
        }

        $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;
        }
    }
protected function setupRenderers($data)
    {
        if (count($this->renderers) === 0) {
            throw new SwatException(
                'No renderer has been provided for this column.'
            );
        }

        $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;
        }
    }
protected function setupRenderers ( $ data ) { if ( count ( $ this -> renderers ) === 0 ) { throw new SwatException ( 'No renderer has been provided for this column.' ) ; } $ 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 ; } }
Sets properties of renderers using data from current row

@param mixed $data the data object being used to render the cell
renderers of this field.
Sets properties of renderers using data from current row