| @@ 237-250 (lines=14) @@ | ||
| 234 | ||
| 235 | if (isset($modifiedDataStructure['sheets']) && is_array($modifiedDataStructure['sheets'])) { |
|
| 236 | // Handling multiple sheets |
|
| 237 | foreach ($modifiedDataStructure['sheets'] as $sheetName => $sheetStructure) { |
|
| 238 | if (isset($pageTsConfig[$sheetName . '.']) && is_array($pageTsConfig[$sheetName . '.'])) { |
|
| 239 | $pageTsOfSheet = $pageTsConfig[$sheetName . '.']; |
|
| 240 | ||
| 241 | // Remove whole sheet if disabled |
|
| 242 | if (!empty($pageTsOfSheet['disabled'])) { |
|
| 243 | unset($modifiedDataStructure['sheets'][$sheetName]); |
|
| 244 | continue; |
|
| 245 | } |
|
| 246 | ||
| 247 | // sheetTitle, sheetDescription, sheetShortDescr |
|
| 248 | $modifiedDataStructure['sheets'][$sheetName] = $this->modifySingleSheetInformation($sheetStructure, $pageTsOfSheet); |
|
| 249 | } |
|
| 250 | } |
|
| 251 | } |
|
| 252 | ||
| 253 | $result['processedTca']['columns'][$fieldName]['config']['ds'] = $modifiedDataStructure; |
|
| @@ 301-309 (lines=9) @@ | ||
| 298 | } |
|
| 299 | ||
| 300 | // now for stdWrap |
|
| 301 | foreach ($confNextLevel as $subKey => $subConfNextLevel) { |
|
| 302 | if (is_array($subConfNextLevel) && $subKey === 'stdWrap.') { |
|
| 303 | $conf[$key] = $this->cObj->stdWrap($conf[$key], $conf[$key . '.']['stdWrap.']); |
|
| 304 | unset($conf[$key . '.']['stdWrap.']); |
|
| 305 | if (empty($conf[$key . '.'])) { |
|
| 306 | unset($conf[$key . '.']); |
|
| 307 | } |
|
| 308 | } |
|
| 309 | } |
|
| 310 | } |
|
| 311 | } |
|
| 312 | return $conf; |
|