comparison program/include/rcmail_output_cli.php @ 0:4681f974d28b

vanilla 1.3.3 distro, I hope
author Charlie Root
date Thu, 04 Jan 2018 15:52:31 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4681f974d28b
1 <?php
2
3 /**
4 +-----------------------------------------------------------------------+
5 | program/include/rcmail_output_cli.php |
6 | |
7 | This file is part of the Roundcube PHP suite |
8 | Copyright (C) 2005-2014 The Roundcube Dev Team |
9 | |
10 | Licensed under the GNU General Public License version 3 or |
11 | any later version with exceptions for skins & plugins. |
12 | See the README file for a full license statement. |
13 | CONTENTS: |
14 | Abstract class for output generation |
15 | |
16 +-----------------------------------------------------------------------+
17 | Author: Thomas Bruederli <roundcube@gmail.com> |
18 +-----------------------------------------------------------------------+
19 */
20
21 /**
22 * Class for output generation
23 *
24 * @package Webmail
25 * @subpackage View
26 */
27 class rcmail_output_cli extends rcmail_output
28 {
29 public $type = 'cli';
30
31 /**
32 * Object constructor
33 */
34 public function __construct($task = null, $framed = false)
35 {
36 parent::__construct();
37 }
38
39 /**
40 * Call a client method
41 *
42 * @see rcube_output::command()
43 */
44 function command()
45 {
46 // NOP
47 }
48
49 /**
50 * Add a localized label to the client environment
51 */
52 function add_label()
53 {
54 // NOP
55 }
56
57 /**
58 * Invoke display_message command
59 *
60 * @see rcube_output::show_message()
61 */
62 function show_message($message, $type = 'notice', $vars = null, $override = true, $timeout = 0)
63 {
64 if ($this->app->text_exists($message)) {
65 $message = $this->app->gettext(array('name' => $message, 'vars' => $vars));
66 }
67
68 printf("[%s] %s\n", strtoupper($type), $message);
69 }
70
71 /**
72 * Redirect to a certain url.
73 *
74 * @see rcube_output::redirect()
75 */
76 function redirect($p = array(), $delay = 1)
77 {
78 // NOP
79 }
80
81 /**
82 * Send output to the client.
83 */
84 function send()
85 {
86 // NOP
87 }
88 }