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