Changeset 13909

Show
Ignore:
Timestamp:
03/26/12 13:18:48 (1 year ago)
Author:
mbrevda
Message:

add try exec ext and some includes for posible future features

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.10/amp_conf/htdocs/admin/functions.inc.php

    r13780 r13909  
    9797  } 
    9898 
    99   /* Special case of TRUE forces all classes to be loaded. Make sure to add new classes to this array 
    100    * as they are added to the autoloader. This was added because the presence of Zend enabled modules 
    101    * can result in the autoloader function failing. 
    102    * 
    103    * Don't force ampuser though it is always loaded in advance 
    104    * 
    105    * Basically, every 'case' below should have a corresponding entry in the $class array below. 
    106    */ 
    107   if ($class === true) { 
    108     $class = array('CI_Email','CI_Table','CssMin','component','featurecode','cronmanager','moduleHook','modulelist','notifications','xml2Array','modgettext'); 
    109   } else { 
    110     $class = array($class); 
    111   } 
     99  /* Special case of TRUE forces all classes to be loaded. Make sure to add new classes to this array 
     100  * as they are added to the autoloader. This was added because the presence of Zend enabled modules 
     101  * can result in the autoloader function failing. 
     102  * 
     103  * Don't force ampuser though it is always loaded in advance 
     104  * 
     105  * Basically, every 'case' below should have a corresponding entry in the $class array below. 
     106  */ 
     107  if ($class === true) { 
     108    $class = array( 
     109      'Api', 
     110      'CI_Email', 
     111      'CI_Table', 
     112      'CssMin', 
     113      'component', 
     114      'featurecode', 
     115      'cronmanager', 
     116      'moduleHook', 
     117      'modulelist', 
     118      'notifications', 
     119      'Router', 
     120      'xml2Array', 
     121      'modgettext'); 
     122  } else { 
     123    $class = array($class); 
     124  } 
    112125 
    113126  foreach ($class as $this_class) switch($this_class){ 
     127    case 'Api': 
     128      require_once($dirname . '/libraries/api.class.php'); 
     129      break; 
    114130    case 'ampuser': 
    115131      require_once($dirname . '/libraries/ampuser.class.php'); 
     
    149165      break; 
    150166    case 'component': 
    151         require_once($dirname . '/libraries/components.class.php'); 
    152         break; 
     167    require_once($dirname . '/libraries/components.class.php'); 
     168    break; 
    153169    case 'featurecode': 
    154170      require_once($dirname . '/libraries/featurecodes.class.php'); 
     
    169185      require_once($dirname . '/libraries/notifications.class.php'); 
    170186      break; 
    171       case 'xml2Array': 
    172         require_once($dirname . '/libraries/xml2Array.class.php'); 
    173         break; 
     187    case 'Router': 
     188      require_once($dirname . '/libraries/router.class.php'); 
     189      break; 
     190    case 'xml2Array': 
     191      require_once($dirname . '/libraries/xml2Array.class.php'); 
     192      break; 
    174193    default: 
    175194      //TODO: enable some logging here 
  • freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/extensions.class.php

    r13840 r13909  
    15821582} 
    15831583 
     1584class ext_tryexec extends extensions { 
     1585  var $try_application; 
     1586 
     1587  function __construct($try_application = ' ') { 
     1588    $this->try_application = $try_application; 
     1589  } 
     1590  function output() { 
     1591    return "TryExec(".$this->try_application.")"; 
     1592  } 
     1593} 
     1594 
    15841595// Speech recognition applications 
    15851596class ext_speechcreate extends extension {