2 namespace TYPO3\CMS\Backend\Form\FormDataProvider;
19 use TYPO3\CMS\Backend\Form\Exception\DatabaseRecordException;
39 throw new \InvalidArgumentException(
40 '$uid must be positive integer, ' . $uid .
' given',
45 $tableName = $database->quoteStr($tableName, $tableName);
47 $row = $database->exec_SELECTgetSingleRow(
'*', $tableName, $where);
50 throw new \RuntimeException(
51 'Database error fetching record from tablename ' . $tableName .
' with uid ' . $uid,
59 'Record with uid ' . $uid .
' from table ' . $tableName .
' not found',
63 if (!is_array($row)) {
65 throw new \UnexpectedValueException(
66 'Database exec_SELECTgetSingleRow() did not return error type or result',