eZ\Publish\Core\Persistence\Legacy\Content\Gateway::listVersionsForUser PHP Method

listVersionsForUser() abstract public method

Returns data for all versions with given status created by the given $userId.
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);

Usage Example

 /**
  * 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);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Gateway::listVersionsForUser