1 | <?php |
||
27 | class OrganizationListWidget extends Widget |
||
28 | { |
||
29 | /** |
||
30 | * @var ActiveDataProvider |
||
31 | */ |
||
32 | public $dataProvider; |
||
33 | |||
34 | const ACTION_COLUMN_DEFAULT = 'default'; |
||
35 | /** |
||
36 | * @var array|null|string ActionColumn class configuration. Null if you do not need it. |
||
37 | * 'default' if you want to use the OrganizationListActionColumn. |
||
38 | * Note: If you want to use your own ActionColumn class configuration, please do not |
||
39 | * forget to attach the 'class' key. |
||
40 | */ |
||
41 | public $actionColumn; |
||
42 | |||
43 | /** |
||
44 | * @var array|null Additional columns' configuration arrays. |
||
45 | * It will be appended after the existed columns. |
||
46 | * If you do not need additional columns, please set null. |
||
47 | */ |
||
48 | public $additionalColumns; |
||
49 | |||
50 | public $showGUID = false; |
||
51 | public $showType = true; |
||
52 | public $showParent = true; |
||
53 | public $showChildren = true; |
||
54 | public $showCreator = true; |
||
55 | public $showAdmin = true; |
||
56 | public $showMember = true; |
||
57 | |||
58 | /** |
||
59 | * @var boolean|array Tips. |
||
60 | * If you do not want to show tips, please set false. |
||
61 | * If you want to show default tips, please set true. |
||
62 | * If you want to show tips including default ones and your owns, please set an array contains all tip text. |
||
63 | */ |
||
64 | public $tips = true; |
||
65 | public $showCreatedAt = true; |
||
66 | public $showUpdatedAt = false; |
||
67 | /** |
||
68 | * @var string|boolean |
||
69 | */ |
||
70 | public $gridCaption = true; |
||
71 | |||
72 | public function init() |
||
86 | |||
87 | public function run() |
||
107 | } |
||
108 |