HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 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 &copy; 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 
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 
41  }
42 
46  protected function initButton()
47  {
52  $this->button['click'] = strtr(
53  $this->button['click'],
54  array('yiiGridView' => 'yiiJsonGridView')
55  );
56  }
57 
58 }