try { $criteria->
setIds($ids);
} catch (InvalidCriteriaIdsException
$e) { throw DataAbstractionLayerException::
invalidApiCriteriaIds($e);
} $criteria->
setLimit(null
);
} else { if (isset($payload['total-count-mode'
])) { $this->
addTotalCountMode((string) $payload['total-count-mode'
],
$criteria);
} if (isset($payload['limit'
])) { $this->
addLimit($payload,
$criteria,
$searchException,
$maxLimit);
} if ($criteria->
getLimit() === null &&
$maxLimit !== null
) { $criteria->
setLimit($maxLimit);
} if (isset($payload['page'
])) {