HCE Project DC service web UI
0.2
Hierarchical Cluster Engine DC service web UI
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
TbJsonToggleColumn.php
Go to the documentation of this file.
1
<?php
2
/*## TbButtonColumn class file.
3
*
4
* @author Konstantin Popov <popovconstantine@gmail.com>
5
* @copyright Copyright © Konstantin Popov 2013-
6
* @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php)
7
* @package booster.widgets
8
*/
9
10
Yii::import(
'booster.widgets.TbToggleColumn'
);
11
16
class
TbJsonToggleColumn
extends
TbToggleColumn
17
{
18
26
public
function
renderDataCell
($row)
27
{
28
if
($this->grid->json) {
29
$data
= $this->grid->dataProvider->data[$row];
30
$col = array();
31
ob_start();
32
$this->
renderDataCellContent
($row,
$data
);
33
$col[
'content'
] = ob_get_contents();
34
ob_end_clean();
35
$col[
'attrs'
] =
''
;
36
return
$col;
37
38
}
39
40
parent::renderDataCell
($row);
41
}
42
46
protected
function
initButton
()
47
{
48
parent::initButton
();
52
$this->button[
'click'
] = strtr(
53
$this->button[
'click'
],
54
array(
'yiiGridView'
=>
'yiiJsonGridView'
)
55
);
56
}
57
58
}
app
protected
extensions
booster
widgets
TbJsonToggleColumn.php
Generated on Tue Jun 30 2015 20:12:34 for HCE Project DC service web UI by
1.8.1.2