Zitat von Gonzalo Palacios Goicolea <gonzalo.palac...@externo.uam.es>:
Hi All,
I'm trying to modify mailbox view to show in the subbar the email
address of the user (here it's also the username) as it is shown in
the portal page, but keeping the quota information. It calls the
subinfo function so I tried to modify Subinfo.php adding a new field
to the array, but without success.
This is what I tried (among others changes):
public function __construct(array $config = array())
{
$config['templatePath'] = IMP_TEMPLATES . '/basic';
parent::__construct($config);
$quotadata =
$GLOBALS['injector']->getInstance('IMP_Quota_Ui')->quota(isset($config['mailbox']) ? $config['mailbox'] : null,
true);
if (!empty($quotadata)) {
$this->quotaClass = $quotadata['class'];
$this->quotaText = $quotadata['message'];
$this->value = $config['mailbox'];
}
}
Do you know how can I easily show the email address at the subbar?
'value' is not passed to the constructor but to the render() method
instead, via the $locals array.
--
Jan Schneider
The Horde Project
https://www.horde.org/
--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org