src/DataTable.php
public static function instance($id = 'datatable')
    {
        $cls = get_called_class();
        if (!isset(self::$instance[$id])) {
            self::$instance[$id] = new $cls($id);
        }

        return self::$instance[$id];
    }
public static function instance($id = 'datatable')
    {
        $cls = get_called_class();
        if (!isset(self::$instance[$id])) {
            self::$instance[$id] = new $cls($id);
        }

        return self::$instance[$id];
    }
public static function instance ( $ id = 'datatable' ) { $ cls = get_called_class ( ) ; if ( ! isset ( self :: $ instance [ $ id ] ) ) { self :: $ instance [ $ id ] = new $ cls ( $ id ) ; } return self :: $ instance [ $ id ] ; }
Get a table initialized if exist, else initialize one

@param string $id Id wich permit to identify the table

@return self
Get a table initialized if exist else initialize one