Archive.org-omeka-module/Module.php

36 lines
589 B
PHP
Raw Normal View History

2021-04-17 19:13:22 +02:00
<?php
namespace ArchiveOrg;
use Omeka\Module\AbstractModule;
use Laminas\EventManager\SharedEventManagerInterface;
use Laminas\Mvc\MvcEvent;
class Module extends AbstractModule
{
const NAMESPACE = __NAMESPACE__;
const MEDIA_TYPE = [
'video' => 'Video',
'audio' => 'Audio',
2021-04-17 19:39:48 +02:00
'image' => 'Image',
2021-04-17 19:13:22 +02:00
];
const MODEL_WIDTH = [
'25' => '25 %',
'50' => '50 %',
'75' => '75 %',
'100' => '100 %',
];
2021-04-17 19:13:22 +02:00
const RATIOS = [
'1.777' => '16:9',
'1.333' => '4:3',
'2' => '2:1',
];
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
}