abstract public listVersionsForUser ( integer $userId, integer $status = VersionInfo::STATUS_DRAFT ) : string[][] | ||
$userId | integer | |
$status | integer | |
return | string[][] |
public abstract function listVersionsForUser($userId, $status = VersionInfo::STATUS_DRAFT);
/** * 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); } }