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

« back to all changes in this revision

Viewing changes to lib/modules/asteriskExtension.inc

  • Committer: Package Import Robot
  • Author(s): Roland Gruber
  • Date: 2013-07-21 11:15:58 UTC
  • mfrom: (1.2.21)
  • Revision ID: package-import@ubuntu.com-20130721111558-ex49xgcpo71fh0xg
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
3
/*
4
 
  $Id: asteriskExtension.inc 4540 2012-07-15 12:05:47Z gruberroland $
 
4
  $Id: asteriskExtension.inc 4893 2013-05-05 13:50:19Z gruberroland $
5
5
  
6
6
  This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
7
7
  Copyright (C) 2009 - 2012  Pavel Pozdniak
802
802
            $extName = $this->extensionRows[0]['astextension'][0];
803
803
        }
804
804
        // global values
805
 
        if (isset($this->attributes['AstContext'])) {
806
 
            $return[get_class($this) . '_AstContext'] = array('<block><key>' . _('Account context') . '</key><value>' . $this->attributes['AstContext'][0] . '</value></block>');
807
 
        }
808
 
        if (isset($this->attributes['AstExtension'])) {
809
 
            $return[get_class($this) . '_AstExtension'] = array('<block><key>' . _('Extension name') . '</key><value>' . $this->attributes['AstExtension'][0] . '</value></block>');
810
 
        }
811
 
        if (isset($this->attributes['member'])) {
812
 
            $return[get_class($this) . '_owners'] = array('<block><key>' . _('Extension owners') . '</key><value>' . implode('; ', $this->attributes['member']) . '</value></block>');
813
 
        }
 
805
        $this->addSimplePDFField($return, 'AstContext', _('Account context'));
 
806
        $this->addSimplePDFField($return, 'AstExtension', _('Extension name'));
 
807
        $this->addSimplePDFField($return, 'owners', _('Extension owners'), 'member', '; ');
814
808
        // rules
815
809
        $entries = $this->load_extension_parts($extName);
816
810
        $rulePDF = array();