File: Horde.php

package info (click to toggle)
php-horde-role 1.0.1-17
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 120 kB
  • sloc: xml: 197; php: 35; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 914 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
 * PEAR_Installer_Role_Horde
 *
 * Copyright 2010-2012 Horde LLC (http://www.horde.org/)
 *
 * See the enclosed file COPYING for license information (LGPL). If you
 * did not receive this file, see http://www.horde.org/licenses/lgpl21.
 *
 * @author    Michael Slusarz <slusarz@horde.org>
 * @category  Horde
 * @license   http://www.horde.org/licenses/lgpl21 LGPL
 * @package   Role
 */

/**
 * @author    Michael Slusarz <slusarz@horde.org>
 * @category  Horde
 * @license   http://www.horde.org/licenses/lgpl21 LGPL
 * @package   Role
 */
class PEAR_Installer_Role_Horde extends PEAR_Installer_Role_Common
{
    function setup(&$installer, $pkg, $atts, $file)
    {
        /* Check for proper setup. */
        $pear_config = PEAR_Config::singleton();
        if (!$pear_config->get('horde_dir')) {
            return PEAR::raiseError('Missing "horde_dir" configuration in PEAR.');
        }
    }
}