| @@ 118-126 (lines=9) @@ | ||
| 115 | * @param mixed $row |
|
| 116 | * @return array |
|
| 117 | */ |
|
| 118 | protected function addColumns($data, $row) |
|
| 119 | { |
|
| 120 | foreach ($this->appendColumns as $key => $value) { |
|
| 121 | $value['content'] = Helper::compileContent($value['content'], $data, $row); |
|
| 122 | $data = Helper::includeInArray($value, $data); |
|
| 123 | } |
|
| 124 | ||
| 125 | return $data; |
|
| 126 | } |
|
| 127 | ||
| 128 | /** |
|
| 129 | * Process edit columns. |
|
| @@ 135-143 (lines=9) @@ | ||
| 132 | * @param mixed $row |
|
| 133 | * @return array |
|
| 134 | */ |
|
| 135 | protected function editColumns($data, $row) |
|
| 136 | { |
|
| 137 | foreach ($this->editColumns as $key => $value) { |
|
| 138 | $value['content'] = Helper::compileContent($value['content'], $data, $row); |
|
| 139 | Arr::set($data, $value['name'], $value['content']); |
|
| 140 | } |
|
| 141 | ||
| 142 | return $data; |
|
| 143 | } |
|
| 144 | ||
| 145 | /** |
|
| 146 | * Setup additional DT row variables. |
|