forked from kartik-v/yii2-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModule.php
executable file
·51 lines (44 loc) · 1.17 KB
/
Module.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2017
* @version 3.1.8
*/
namespace kartik\grid;
use Yii;
/**
* This module allows global level configurations for the enhanced Krajee [[GridView]]. One can configure the module
* in their Yii configuration file as shown below:
*
* ```php
* 'modules' => [
* 'gridview' => [
* 'class' => 'kartik\grid\Module',
* 'downloadAction' => '/gridview/export/download' // your grid export download setting
* ]
* ]
* ```
*
* @author Kartik Visweswaran <[email protected]>
* @since 1.0
*/
class Module extends \kartik\base\Module
{
/**
* The module name for Krajee gridview
*/
const MODULE = "gridview";
/**
* @var string a random salt that will be used to generate a hash string for export configuration.
*/
public $exportEncryptSalt = 'SET_A_SALT_FOR_YII2_GRID';
/**
* @var string|array the action (url) used for downloading exported file
*/
public $downloadAction;
/**
* @inheritdoc
*/
protected $_msgCat = 'kvgrid';
}