Changeset 13909
- Timestamp:
- 03/26/12 13:18:48 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.10/amp_conf/htdocs/admin/functions.inc.php
r13780 r13909 97 97 } 98 98 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 } 112 125 113 126 foreach ($class as $this_class) switch($this_class){ 127 case 'Api': 128 require_once($dirname . '/libraries/api.class.php'); 129 break; 114 130 case 'ampuser': 115 131 require_once($dirname . '/libraries/ampuser.class.php'); … … 149 165 break; 150 166 case 'component': 151 require_once($dirname . '/libraries/components.class.php');152 break;167 require_once($dirname . '/libraries/components.class.php'); 168 break; 153 169 case 'featurecode': 154 170 require_once($dirname . '/libraries/featurecodes.class.php'); … … 169 185 require_once($dirname . '/libraries/notifications.class.php'); 170 186 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; 174 193 default: 175 194 //TODO: enable some logging here freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/extensions.class.php
r13840 r13909 1582 1582 } 1583 1583 1584 class 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 1584 1595 // Speech recognition applications 1585 1596 class ext_speechcreate extends extension {
