| @@ 1371-1390 (lines=20) @@ | ||
| 1368 | * @throws \UnexpectedValueException |
|
| 1369 | * @deprecated since TYPO3 v9, will be removed in TYPO3 v10 |
|
| 1370 | */ |
|
| 1371 | public function setTableDisplayOrder(array $orderInformation) |
|
| 1372 | { |
|
| 1373 | foreach ($orderInformation as $tableName => &$configuration) { |
|
| 1374 | if (isset($configuration['before'])) { |
|
| 1375 | if (is_string($configuration['before'])) { |
|
| 1376 | $configuration['before'] = GeneralUtility::trimExplode(',', $configuration['before'], true); |
|
| 1377 | } elseif (!is_array($configuration['before'])) { |
|
| 1378 | throw new \UnexpectedValueException('The specified "before" order configuration for table "' . $tableName . '" is invalid.', 1436195933); |
|
| 1379 | } |
|
| 1380 | } |
|
| 1381 | if (isset($configuration['after'])) { |
|
| 1382 | if (is_string($configuration['after'])) { |
|
| 1383 | $configuration['after'] = GeneralUtility::trimExplode(',', $configuration['after'], true); |
|
| 1384 | } elseif (!is_array($configuration['after'])) { |
|
| 1385 | throw new \UnexpectedValueException('The specified "after" order configuration for table "' . $tableName . '" is invalid.', 1436195934); |
|
| 1386 | } |
|
| 1387 | } |
|
| 1388 | } |
|
| 1389 | $this->tableDisplayOrder = $orderInformation; |
|
| 1390 | } |
|
| 1391 | ||
| 1392 | /** |
|
| 1393 | * @return array |
|
| @@ 3920-3945 (lines=26) @@ | ||
| 3917 | * @param array $orderInformation |
|
| 3918 | * @throws \UnexpectedValueException |
|
| 3919 | */ |
|
| 3920 | public function setTableDisplayOrder(array $orderInformation) |
|
| 3921 | { |
|
| 3922 | foreach ($orderInformation as $tableName => &$configuration) { |
|
| 3923 | if (isset($configuration['before'])) { |
|
| 3924 | if (is_string($configuration['before'])) { |
|
| 3925 | $configuration['before'] = GeneralUtility::trimExplode(',', $configuration['before'], true); |
|
| 3926 | } elseif (!is_array($configuration['before'])) { |
|
| 3927 | throw new \UnexpectedValueException( |
|
| 3928 | 'The specified "before" order configuration for table "' . $tableName . '" is invalid.', |
|
| 3929 | 1504870805 |
|
| 3930 | ); |
|
| 3931 | } |
|
| 3932 | } |
|
| 3933 | if (isset($configuration['after'])) { |
|
| 3934 | if (is_string($configuration['after'])) { |
|
| 3935 | $configuration['after'] = GeneralUtility::trimExplode(',', $configuration['after'], true); |
|
| 3936 | } elseif (!is_array($configuration['after'])) { |
|
| 3937 | throw new \UnexpectedValueException( |
|
| 3938 | 'The specified "after" order configuration for table "' . $tableName . '" is invalid.', |
|
| 3939 | 1504870806 |
|
| 3940 | ); |
|
| 3941 | } |
|
| 3942 | } |
|
| 3943 | } |
|
| 3944 | $this->tableDisplayOrder = $orderInformation; |
|
| 3945 | } |
|
| 3946 | ||
| 3947 | /** |
|
| 3948 | * @return array |
|
| @@ 3795-3820 (lines=26) @@ | ||
| 3792 | * @param array $orderInformation |
|
| 3793 | * @throws \UnexpectedValueException |
|
| 3794 | */ |
|
| 3795 | public function setTableDisplayOrder(array $orderInformation) |
|
| 3796 | { |
|
| 3797 | foreach ($orderInformation as $tableName => &$configuration) { |
|
| 3798 | if (isset($configuration['before'])) { |
|
| 3799 | if (is_string($configuration['before'])) { |
|
| 3800 | $configuration['before'] = GeneralUtility::trimExplode(',', $configuration['before'], true); |
|
| 3801 | } elseif (!is_array($configuration['before'])) { |
|
| 3802 | throw new \UnexpectedValueException( |
|
| 3803 | 'The specified "before" order configuration for table "' . $tableName . '" is invalid.', |
|
| 3804 | 1504793406 |
|
| 3805 | ); |
|
| 3806 | } |
|
| 3807 | } |
|
| 3808 | if (isset($configuration['after'])) { |
|
| 3809 | if (is_string($configuration['after'])) { |
|
| 3810 | $configuration['after'] = GeneralUtility::trimExplode(',', $configuration['after'], true); |
|
| 3811 | } elseif (!is_array($configuration['after'])) { |
|
| 3812 | throw new \UnexpectedValueException( |
|
| 3813 | 'The specified "after" order configuration for table "' . $tableName . '" is invalid.', |
|
| 3814 | 1504793407 |
|
| 3815 | ); |
|
| 3816 | } |
|
| 3817 | } |
|
| 3818 | } |
|
| 3819 | $this->tableDisplayOrder = $orderInformation; |
|
| 3820 | } |
|
| 3821 | ||
| 3822 | /** |
|
| 3823 | * @return array |
|