~ubuntu-branches/ubuntu/vivid/php-horde-nag/vivid

« back to all changes in this revision

Viewing changes to nag-4.1.2/lib/Ajax/Application.php

  • Committer: Package Import Robot
  • Author(s): Mathieu Parent
  • Date: 2013-10-29 22:01:43 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20131029220143-k16crjhccwr56jxq
Tags: 4.1.3-1
New upstream version 4.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
/**
3
 
 * Defines the AJAX interface for Nag.
4
 
 *
5
 
 * Copyright 2010-2013 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
 
 */
15
 
class 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
 
}