[TASK] Add features to apiUtility and interfaceUtility
This commit is contained in:
@@ -44,7 +44,8 @@ class ApiUtility
|
||||
$queryResult,
|
||||
$additionalAttributes = [],
|
||||
$mapping = [],
|
||||
$rootRowClass = null
|
||||
$rootRowClass = null,
|
||||
$options = []
|
||||
) {
|
||||
$this->objectManager = GeneralUtility::makeInstance(
|
||||
ObjectManager::class
|
||||
@@ -130,7 +131,8 @@ class ApiUtility
|
||||
$methodResult,
|
||||
$additionalAttributes[$attributeName],
|
||||
$mapping,
|
||||
$nextLevelClass
|
||||
$nextLevelClass,
|
||||
$options
|
||||
);
|
||||
if ($imageStorage) {
|
||||
foreach ($attributeResult as &$attributeResultRow) {
|
||||
@@ -167,7 +169,8 @@ class ApiUtility
|
||||
[$methodResult],
|
||||
$additionalAttributes[$attributeName],
|
||||
$mapping,
|
||||
$nextLevelClass
|
||||
$nextLevelClass,
|
||||
$options
|
||||
)[0];
|
||||
$rowResult[$attributeName . 'Uid']
|
||||
= $rowResult[$attributeName]['uid'];
|
||||
@@ -218,6 +221,10 @@ class ApiUtility
|
||||
}
|
||||
}
|
||||
}
|
||||
if (($options['clearIds'] ?? '' ) === true) {
|
||||
unset($rowResult['uid']);
|
||||
unset($rowResult['pid']);
|
||||
}
|
||||
$result[] = $rowResult;
|
||||
}
|
||||
return $result;
|
||||
|
||||
Reference in New Issue
Block a user