2013-11-03 11:24:09 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* EGroupware Mail: Wizard to create mail accounts
|
|
|
|
*
|
2016-10-08 14:32:58 +02:00
|
|
|
* @link http://www.egroupware.org
|
2013-11-03 11:24:09 +01:00
|
|
|
* @package emailadmin
|
2016-10-08 14:32:58 +02:00
|
|
|
* @author Ralf Becker <rb@egroupware.org>
|
2013-11-03 11:24:09 +01:00
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @version $Id$
|
|
|
|
*/
|
|
|
|
|
2016-05-03 21:17:44 +02:00
|
|
|
use EGroupware\Api;
|
|
|
|
use EGroupware\Api\Framework;
|
|
|
|
|
2013-11-03 11:24:09 +01:00
|
|
|
/**
|
2016-05-03 21:17:44 +02:00
|
|
|
* Wizard to create mail Api\Accounts
|
2013-11-03 11:24:09 +01:00
|
|
|
*
|
2016-03-28 20:51:38 +02:00
|
|
|
* Extends admin_mail to allow non-admins to use it.
|
2013-11-03 11:24:09 +01:00
|
|
|
*/
|
2016-03-28 20:51:38 +02:00
|
|
|
class mail_wizard extends admin_mail
|
2013-11-03 11:24:09 +01:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Prefix for callback names
|
|
|
|
*/
|
|
|
|
const APP_CLASS = 'mail.mail_wizard.';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
*/
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
parent::__construct();
|
|
|
|
|
|
|
|
// need emailadmin's app.css file
|
2016-05-03 21:17:44 +02:00
|
|
|
Framework::includeCSS('admin','app');
|
2013-11-03 11:24:09 +01:00
|
|
|
|
|
|
|
// and translations
|
2016-05-03 21:17:44 +02:00
|
|
|
Api\Translation::add_app('admin');
|
2013-11-06 10:12:22 +01:00
|
|
|
|
2016-05-03 21:17:44 +02:00
|
|
|
Framework::includeJS('/admin/js/app.js');
|
2013-11-03 11:24:09 +01:00
|
|
|
}
|
|
|
|
}
|