Swat/SwatCellRendererSet.php
public function addMappingToRenderer(
        SwatCellRenderer $renderer,
        SwatCellRendererMapping $mapping
    ) {
        if ($renderer->isPropertyStatic($mapping->property)) {
            throw new SwatException(
                sprintf(
                    'The %s property can not be data-mapped',
                    $mapping->property
                )
            );
        }

        $renderer_key = spl_object_hash($renderer);
        $this->mappings[$renderer_key][] = $mapping;
    }
public function addMappingToRenderer(
        SwatCellRenderer $renderer,
        SwatCellRendererMapping $mapping
    ) {
        if ($renderer->isPropertyStatic($mapping->property)) {
            throw new SwatException(
                sprintf(
                    'The %s property can not be data-mapped',
                    $mapping->property
                )
            );
        }

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

@param SwatCellRenderer $renderer the cell renderer to add the mapping
to.
@param SwatCellRendererMapping $mapping the mapping to add.

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