/**
* Returns data for all versions with given status created by the given $userId
*
* @param int $userId
* @param int $status
*
* @return string[][]
*/
public function listVersionsForUser($userId, $status = VersionInfo::STATUS_DRAFT)
{
try {
return $this->innerGateway->listVersionsForUser($userId, $status);
} catch (DBALException $e) {
throw new RuntimeException('Database error', 0, $e);
} catch (PDOException $e) {
throw new RuntimeException('Database error', 0, $e);
}
}