<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Treatment
 *
 * @author dmastylak
 */
class Gallery_Jqgrid_Gallery extends Rtn_JqGrid {

    public $beanName = 'gallery';
    public $name = 'gallery';
    public $tree_grid = false;
    public $multilang = false;
    
    public $actions = array(
        'add' => null,
        'remove' => null,
        'edit' => null,
        'active' => null,
    );

    protected function _renderColmodel() {
        $columns[] = [
            'name' => 'name',
            'label' => __('Nazwa'),
        ];

        $columns[] = [
            'name' => 'update',
            'label' => __('Data'),
            'formater' => 'date',
            'search' => false
        ];
//        $columns[] = [
//            'name' => 'title',
//            'label' => __('Title')
//        ];
        return $columns;
    }

}
