ZfTable 3.0

Awesome table/grid (and much much more) generator with huge possibilities of decorating and conditioning.
Integrated with DataTables, Doctrine 2, Bootstrap 2.0 and 3.0.

Code/Information

Callable decorator

class Callable extends AbstractTable
{
    protected $config = array(
        'name' => 'Callable',
        'showPagination' => true,
        'showQuickSearch' => false,
        'showItemPerPage' => true,
    );
    
    //Definition of headers
    protected $headers = array(
        'idcustomer' => array('title' => 'Id', 'width' => '50') ,
        'closureColumn' => array('title' => 'Closure'),
        'name' => array('title' => 'Name' , 'separatable' => true),
        'surname' => array('title' => 'Surname' ),
        'street' => array('title' => 'Street'),
        'city' => array('title' => 'City' , 'separatable' => true),
        'active' => array('title' => 'Active' , 'width' => 100 ),
    );

    public function init()
    {
        
        $this->getHeader('closureColumn')->getCell()->addDecorator('closure', array(
            'closure' => function($context, $record){
                return ' ImiÄ™ : ' . $record['name'] . ', Nazwisko: '. $record['surname'];
            }
        ));
        
    }
}
Fork me on GitHub