Make ArchiveFileHandler inherit from DataHandlerExtension
This commit is contained in:
parent
d1374c021e
commit
e2319769c6
1 changed files with 9 additions and 6 deletions
|
@ -1,7 +1,9 @@
|
||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
class ArchiveFileHandler extends Extension
|
class ArchiveFileHandler extends DataHandlerExtension
|
||||||
{
|
{
|
||||||
|
protected $SUPPORTED_EXT = ["zip"];
|
||||||
|
|
||||||
public function onInitExt(InitExtEvent $event)
|
public function onInitExt(InitExtEvent $event)
|
||||||
{
|
{
|
||||||
global $config;
|
global $config;
|
||||||
|
@ -36,9 +38,10 @@ class ArchiveFileHandler extends Extension
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function supported_ext($ext)
|
public function onDisplayingImage(DisplayingImageEvent $event) {}
|
||||||
{
|
|
||||||
$exts = ["zip"];
|
// we don't actually do anything, just accept one upload and spawn several
|
||||||
return in_array(strtolower($ext), $exts);
|
protected function media_check_properties(MediaCheckPropertiesEvent $event): void {}
|
||||||
}
|
protected function check_contents(string $tmpname): bool {return false;}
|
||||||
|
protected function create_thumb(string $hash, string $type): bool {return false;}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue