Swat/SwatCellRendererSet.php
public function addRenderer(SwatCellRenderer $renderer)
    {
        $this->renderers[] = $renderer;

        $renderer_key = spl_object_hash($renderer);
        $this->mappings[$renderer_key] = array();

        if ($renderer->id !== null) {
            $this->renderers_by_id[$renderer->id] = $renderer;
        }
    }
public function addRenderer(SwatCellRenderer $renderer)
    {
        $this->renderers[] = $renderer;

        $renderer_key = spl_object_hash($renderer);
        $this->mappings[$renderer_key] = array();

        if ($renderer->id !== null) {
            $this->renderers_by_id[$renderer->id] = $renderer;
        }
    }
public function addRenderer ( SwatCellRenderer $ renderer ) { $ this -> renderers [ ] = $ renderer ; $ renderer_key = spl_object_hash ( $ renderer ) ; $ this -> mappings [ $ renderer_key ] = array ( ) ; if ( $ renderer -> id !== null ) { $ this -> renderers_by_id [ $ renderer -> id ] = $ renderer ; } }
Adds a cell renderer to this set

An empty datafield-property mapping array is created for the added
renderer.

@param SwatCellRenderer $renderer the renderer to add.
Adds a cell renderer to this set