Manager

implements Zend\Permissions\Acl\Resource\ResourceInterface
Methods Summary
public
# __construct( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator )
public
# registerModule( string $id )
Register a new module
public
# iniIsValid( Omeka\Module\Module $module )
Check whether the module INI is valid
public
# isRegistered( string $id )
Check whether a module is registered
public
# getModule( string $id )
Get a registered module
public
# getModules( )
Get all registered modules
public
# getModulesByState( string $state )
Get all registered modules by state
public
# activate( Omeka\Module\Module $module )
Activate a module
public
# deactivate( Omeka\Module\Module $module )
Deactivate a module
public
# install( Omeka\Module\Module $module )
Install and activate a module
public
# uninstall( Omeka\Module\Module $module )
Uninstall a module
public
# upgrade( Omeka\Module\Module $module )
Upgrade a module
protected
# getModuleEntity( Omeka\Module\Module $module )
Get a module entity
protected
# getModuleObject( Omeka\Module\Module $module )
Get a module object Get from Zend's module manager if loaded (i.e. active), otherwise instantiate a new module object.
protected
# getEntityManager( )
Get the entity manager
public
# getTranslator( )
Get the translator service return TranslatorInterface
protected
# authorize( Omeka\Module\Module $module , string $privilege )
Verify that the current user has permission.
public
Constants Summary
public string STATE_ACTIVE
# 'active'
public string STATE_NOT_ACTIVE
# 'not_active'
public string STATE_NOT_INSTALLED
# 'not_installed'
public string STATE_NOT_FOUND
# 'not_found'
public string STATE_INVALID_MODULE
# 'invalid_module'
public string STATE_INVALID_INI
# 'invalid_ini'
public string STATE_INVALID_OMEKA_VERSION
# 'invalid_omeka_version'
public string STATE_NEEDS_UPGRADE
# 'needs_upgrade'
Properties Summary
protected array $validStates
# array ( 0 => 'active', 1 => 'not_active', 2 => 'not_installed', 3 => 'not_found', 4 => 'invalid_module', 5 => 'invalid_ini', 6 => 'invalid_omeka_version', 7 => 'needs_upgrade', )
protected array $modules
# array ( )
protected Doctrine\ORM\EntityManager $entityManager
# NULL
protected Zend\I18n\Translator\TranslatorInterface $translator
# NULL
protected Zend\ServiceManager\ServiceLocatorInterface $serviceLocator
# NULL