Updated PEAR and PEAR packages.
[timetracker.git] / WEB-INF / lib / pear / PEAR / Command / Auth.php
1 <?php
2 /**
3  * PEAR_Command_Auth (login, logout commands)
4  *
5  * PHP versions 4 and 5
6  *
7  * @category   pear
8  * @package    PEAR
9  * @author     Stig Bakken <ssb@php.net>
10  * @author     Greg Beaver <cellog@php.net>
11  * @copyright  1997-2009 The Authors
12  * @license    http://opensource.org/licenses/bsd-license.php New BSD License
13  * @link       http://pear.php.net/package/PEAR
14  * @since      File available since Release 0.1
15  * @deprecated since 1.8.0alpha1
16  */
17
18 /**
19  * base class
20  */
21 require_once 'PEAR/Command/Channels.php';
22
23 /**
24  * PEAR commands for login/logout
25  *
26  * @category   pear
27  * @package    PEAR
28  * @author     Stig Bakken <ssb@php.net>
29  * @author     Greg Beaver <cellog@php.net>
30  * @copyright  1997-2009 The Authors
31  * @license    http://opensource.org/licenses/bsd-license.php New BSD License
32  * @version    Release: 1.10.1
33  * @link       http://pear.php.net/package/PEAR
34  * @since      Class available since Release 0.1
35  * @deprecated since 1.8.0alpha1
36  */
37 class PEAR_Command_Auth extends PEAR_Command_Channels
38 {
39     var $commands = array(
40         'login' => array(
41             'summary' => 'Connects and authenticates to remote server [Deprecated in favor of channel-login]',
42             'shortcut' => 'li',
43             'function' => 'doLogin',
44             'options' => array(),
45             'doc' => '<channel name>
46 WARNING: This function is deprecated in favor of using channel-login
47
48 Log in to a remote channel server.  If <channel name> is not supplied,
49 the default channel is used. To use remote functions in the installer
50 that require any kind of privileges, you need to log in first.  The
51 username and password you enter here will be stored in your per-user
52 PEAR configuration (~/.pearrc on Unix-like systems).  After logging
53 in, your username and password will be sent along in subsequent
54 operations on the remote server.',
55             ),
56         'logout' => array(
57             'summary' => 'Logs out from the remote server [Deprecated in favor of channel-logout]',
58             'shortcut' => 'lo',
59             'function' => 'doLogout',
60             'options' => array(),
61             'doc' => '
62 WARNING: This function is deprecated in favor of using channel-logout
63
64 Logs out from the remote server.  This command does not actually
65 connect to the remote server, it only deletes the stored username and
66 password from your user configuration.',
67             )
68
69         );
70
71     /**
72      * PEAR_Command_Auth constructor.
73      *
74      * @access public
75      */
76     function __construct(&$ui, &$config)
77     {
78         parent::__construct($ui, $config);
79     }
80 }