Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
AboutSiteHandler.inc.php
1 <?php
2 
16 import('classes.handler.Handler');
17 
18 class AboutSiteHandler extends Handler {
22  function AboutSiteHandler() {
23  parent::Handler();
24  AppLocale::requireComponents(LOCALE_COMPONENT_APP_COMMON);
25  }
26 
32  function aboutThisPublishingSystem($args, $request) {
33  $versionDao = DAORegistry::getDAO('VersionDAO');
34  $version = $versionDao->getCurrentVersion();
35 
36  $templateMgr = TemplateManager::getManager($request);
37  $templateMgr->assign('appVersion', $version->getVersionString(false));
38 
39  foreach (array(AppLocale::getLocale(), $primaryLocale = AppLocale::getPrimaryLocale(), 'en_US') as $locale) {
40  $pubProcessFile = 'locale/'.$locale.'/pubprocesslarge.png';
41  if (file_exists($pubProcessFile)) break;
42  }
43  $templateMgr->assign('pubProcessFile', $pubProcessFile);
44 
45  $templateMgr->display('about/aboutThisPublishingSystem.tpl');
46  }
47 }
48 
49 ?>
static & getDAO($name, $dbconn=null)
static requireComponents()
static getPrimaryLocale()
Handle requests for site-wide about functions.
static getLocale()
Base request handler application class.
Definition: Handler.inc.php:20
aboutThisPublishingSystem($args, $request)