GeneratorHelper

class OC\Preview\GeneratorHelper
Very small wrapper class to make the generator fully unit testable
Source:lib/private/Preview/GeneratorHelper.php#41

Properties

Methods

public OC\Preview\GeneratorHelper::__construct($rootFolder, $config)
Source:lib/private/Preview/GeneratorHelper.php#49
public OC\Preview\GeneratorHelper::getThumbnail($provider, $file, $maxWidth, $maxHeight)
Source:

lib/private/Preview/GeneratorHelper.php#62

Parameters:
Returns:

bool | \OCP\IImage

public OC\Preview\GeneratorHelper::getImage($maxPreview)
Source:

lib/private/Preview/GeneratorHelper.php#70

Parameters:
Returns:

\OCP\IImage

public OC\Preview\GeneratorHelper::getProvider($providerClosure)
Source:

lib/private/Preview/GeneratorHelper.php#80

Parameters:
  • $providerClosure (callable)
Returns:

\OCP\Preview\IProviderV2