~ubuntu-branches/ubuntu/trusty/ldap-account-manager/trusty

« back to all changes in this revision

Viewing changes to lib/modules/asteriskVoicemail.inc

  • Committer: Package Import Robot
  • Author(s): Roland Gruber
  • Date: 2013-07-21 11:15:58 UTC
  • mfrom: (1.1.27) (4.1.25 sid)
  • Revision ID: package-import@ubuntu.com-20130721111558-vrnk3kf6t2khyizx
Tags: 4.2.1-2
* Apache 2.4 support
* Fix "transition towards Apache 2.4" 
  support conf-enabled (Closes: #669824)
* Fix "[ldap-account-manager] Can't install ldap-account-manager"
  support conf-enabled (Closes: #711778)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
2
/*
3
 
$Id: asteriskVoicemail.inc 4559 2012-08-18 15:55:43Z gruberroland $
 
3
$Id: asteriskVoicemail.inc 4893 2013-05-05 13:50:19Z gruberroland $
4
4
 
5
5
  This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
6
6
  Copyright (C) 2010         Pavel Pozdnyak
7
 
                2010 - 2012  Roland Gruber
 
7
                2010 - 2013  Roland Gruber
8
8
 
9
9
  This program is free software; you can redistribute it and/or modify
10
10
  it under the terms of the GNU General Public License as published by
385
385
         */
386
386
        function get_pdfEntries() {
387
387
                $return = array();
388
 
                $AstVoicemailMailbox = '';
389
 
                if (isset($this->attributes['AstVoicemailMailbox'][0])) $AstVoicemailMailbox = $this->attributes['AstVoicemailMailbox'][0];
390
 
                $return[get_class($this) . '_AstVoicemailMailbox'] = array('<block><key>' . _('Mailbox') . '</key><value>' . $AstVoicemailMailbox . '</value></block>');
391
 
                
392
 
                $AstContext = '';
393
 
                if (isset($this->attributes['AstContext'][0])) $AstContext = $this->attributes['AstContext'][0];
394
 
                $return[get_class($this) . '_AstContext'] = array('<block><key>' . _('Account context') . '</key><value>' . $AstContext . '</value></block>');
395
 
 
396
 
                $AstVoicemailFullname = '';
397
 
                if (isset($this->attributes['AstVoicemailFullname'][0])) $AstVoicemailFullname = $this->attributes['AstVoicemailFullname'][0];
398
 
                $return[get_class($this) . '_AstVoicemailFullname'] = array('<block><key>' . _('Full name') . '</key><value>' . $AstVoicemailFullname . '</value></block>');
399
 
 
400
 
                $AstVoicemailContext = '';
401
 
                if (isset($this->attributes['AstVoicemailContext'][0])) $AstVoicemailContext = $this->attributes['AstVoicemailContext'][0];
402
 
                $return[get_class($this) . '_AstVoicemailContext'] = array('<block><key>' . _('Voicemail context') . '</key><value>' . $AstVoicemailContext . '</value></block>');
403
 
 
404
 
                $AstVoicemailPager = '';
405
 
                if (isset($this->attributes['AstVoicemailPager'][0])) $AstVoicemailPager = $this->attributes['AstVoicemailPager'][0];
406
 
                $return[get_class($this) . '_AstVoicemailPager'] = array('<block><key>' . _('Pager') . '</key><value>' . $AstVoicemailPager . '</value></block>');
407
 
                
408
 
                $AstVoicemailEmail = '';
409
 
                if (isset($this->attributes['AstVoicemailEmail'][0])) $AstVoicemailEmail = $this->attributes['AstVoicemailEmail'][0];
410
 
                $return[get_class($this) . '_AstVoicemailEmail'] = array('<block><key>' . _('Email address') . '</key><value>' . $AstVoicemailEmail . '</value></block>');
411
 
                
412
 
                $AstVoicemailOptions = '';
413
 
                if (isset($this->attributes['AstVoicemailOptions'][0])) $AstVoicemailOptions = $this->attributes['AstVoicemailOptions'][0];
414
 
                $return[get_class($this) . '_AstVoicemailOptions'] = array('<block><key>' . _('Options') . '</key><value>' . $AstVoicemailOptions . '</value></block>');
 
388
                $this->addSimplePDFField($return, 'AstVoicemailMailbox', _('Mailbox'));
 
389
                $this->addSimplePDFField($return, 'AstContext', _('Account context'));
 
390
                $this->addSimplePDFField($return, 'AstVoicemailFullname', _('Full name'));
 
391
                $this->addSimplePDFField($return, 'AstVoicemailContext', _('Voicemail context'));
 
392
                $this->addSimplePDFField($return, 'AstVoicemailPager', _('Pager'));
 
393
                $this->addSimplePDFField($return, 'AstVoicemailEmail', _('Email address'));
 
394
                $this->addSimplePDFField($return, 'AstVoicemailOptions', _('Options'));
415
395
                return $return;
416
396
        }
417
397