Omeka_Application

class Omeka_Application

Package: Application

Core class used to bootstrap the Omeka environment.

Various duties include, but are not limited to setting up class autoload, database, configuration files, logging, plugins, front controller, etc.

When any core resource returns from init(), the result is stored in thebootstrap container. Other parts of the application can get the resourcesfrom the bootstrap when needed.

__construct(string $environment, string|array|Zend_Config $options)

Initialize the application.

Parameters:
  • $environment (string) – The environment name.
  • $options (string|array|Zend_Config) – Application configuration.
initialize()

Bootstrap the entire application.

run()

Display the generic error page for all otherwise-uncaught exceptions.

_displayErrorPage(Exception $e, string $title)

Print an HTML page to display errors when starting the application.

Parameters:
  • $e (Exception) –
  • $title (string) – The title of the error page.

Project Versions

Previous topic

Omeka_View_Helper_AbstractSearch

Next topic

Omeka_Captcha

This Page