Swat/SwatCellRendererSet.php
public function addMappingsToRenderer(
        SwatCellRenderer $renderer,
        array $mappings = array()
    ) {
        $renderer_key = spl_object_hash($renderer);

        foreach ($mappings as $mapping) {
            if ($renderer->isPropertyStatic($mapping->property)) {
                throw new SwatException(
                    sprintf(
                        'The %s property can not be data-mapped',
                        $mapping->property
                    )
                );
            }

            $this->mappings[$renderer_key][] = $mapping;
        }
    }
public function addMappingsToRenderer(
        SwatCellRenderer $renderer,
        array $mappings = array()
    ) {
        $renderer_key = spl_object_hash($renderer);

        foreach ($mappings as $mapping) {
            if ($renderer->isPropertyStatic($mapping->property)) {
                throw new SwatException(
                    sprintf(
                        'The %s property can not be data-mapped',
                        $mapping->property
                    )
                );
            }

            $this->mappings[$renderer_key][] = $mapping;
        }
    }
public function addMappingsToRenderer ( SwatCellRenderer $ renderer , array $ mappings = array ( ) ) { $ renderer_key = spl_object_hash ( $ renderer ) ; foreach ( $ mappings as $ mapping ) { if ( $ renderer -> isPropertyStatic ( $ mapping -> property ) ) { throw new SwatException ( sprintf ( 'The %s property can not be data-mapped' , $ mapping -> property ) ) ; } $ this -> mappings [ $ renderer_key ] [ ] = $ mapping ; } }
Adds a set of datafield-property mappings to a cell renderer already in
this set

@param SwatCellRenderer $renderer the cell renderer to add the mappings
to.
@param array $mappings an array of SwatCellRendererMapping objects.

@throws SwatException if an attepmt to map a static cell renderer
property is made.
Adds a set of datafield - property mappings to a cell renderer already in this set