1<?php
2/**
3 * Defines the AJAX interface for Nag.
4 *
5 * Copyright 2010-2017 Horde LLC (http://www.horde.org/)
6 *
7 * See the enclosed file COPYING for license information (GPL). If you
8 * did not receive this file, see http://www.horde.org/licenses/gpl.
9 *
10 * @author   Michael Slusarz <slusarz@horde.org>
11 * @category Horde
12 * @license  http://www.horde.org/licenses/gpl GPL
13 * @package  Nag
14 */
15class Nag_Ajax_Application extends Horde_Core_Ajax_Application
16{
17    /**
18     */
19    protected function _init()
20    {
21        global $registry;
22
23        $this->addHandler('Horde_Core_Ajax_Application_Handler_Prefs');
24
25        switch ($registry->getView()) {
26        case $registry::VIEW_SMARTMOBILE:
27            $this->addHandler('Nag_Ajax_Application_Handler_Smartmobile');
28            break;
29        }
30    }
31
32}
33