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: Parameters: - $provider (
OCP\Preview\IProviderV2
) - $file (
OCP\Files\File
) - $maxWidth (int)
- $maxHeight (int)
Returns: bool |
\OCP\IImage
- $provider (
-
public
OC\Preview\GeneratorHelper::
getImage
($maxPreview)¶ Source: Parameters: - $maxPreview (
OCP\Files\SimpleFS\ISimpleFile
)
Returns: - $maxPreview (
-
public
OC\Preview\GeneratorHelper::
getProvider
($providerClosure)¶ Source: Parameters: - $providerClosure (callable)
Returns: