Changeset 24887
- Timestamp:
- 11/15/08 17:12:41 (8 weeks ago)
- Location:
- development/main
- Files:
-
- 7 modified
- 5 moved
-
includes/Loader.class.php (modified) (1 diff)
-
includes/objects/ZHookInterface.interface.php (moved) (moved from development/main/includes/objects/ZHookInterface.php)
-
includes/objects/ZHookTransformInterface.interface.php (moved) (moved from development/main/includes/objects/ZHookTransformInterface.php) (1 diff)
-
includes/objects/ZModule.class.php (modified) (1 diff)
-
includes/objects/ZModuleDependency.class.php (modified) (1 diff)
-
includes/objects/ZModuleInstaller.class.php (modified) (1 diff)
-
includes/objects/ZModuleInstallerInterface.interface.php (moved) (moved from development/main/includes/objects/ZModuleInstallerInterface.php)
-
includes/objects/ZModuleInterface.interface.php (moved) (moved from development/main/includes/objects/ZModuleInterface.php)
-
includes/objects/ZModuleLegacy.class.php (modified) (1 diff)
-
includes/objects/ZObjectInterface.interface.php (moved) (moved from development/main/includes/objects/ZObjectInterface.php)
-
modules/Ephemerids/EphemeridsInstaller.class.php (modified) (1 diff)
-
modules/Ephemerids/EphemeridsModule.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
development/main/includes/Loader.class.php
r24713 r24887 169 169 } 170 170 171 /** 172 * Load an interface file from the specified location in the file tree 173 * 174 * @param interfaceName The interface-basename to load 175 * @param classPath The path prefix to use (optional) (default='includes') 176 * @param exitOnError whether or not exit upon error (optional) (default=true) 177 * 178 * @return string The file name which was loaded 179 */ 180 static function loadInterface($interfaceName, $classPath = 'includes', $exitOnError = true) 181 { 182 if (!$interfaceName) { 183 return pn_exit("Invalid interface specification [$interfaceName] ..."); 184 } 185 186 if (class_exists($interfaceName)) { 187 return $interfaceName; 188 } 189 190 $interfaceFile = $interfaceName . '.interface.php'; 191 $rc = self::loadFile($interfaceFile, "config/classes/$classPath", false); 192 if (!$rc) { 193 $rc = self::loadFile($interfaceFile, $classPath, $exitOnError); 194 } 195 196 return $rc; 197 } 171 198 172 199 /** -
development/main/includes/objects/ZHookTransformInterface.interface.php
r24705 r24887 11 11 */ 12 12 13 Loader::load File('ZHookInterface.php', 'includes/objects');13 Loader::loadInterface('ZHookInterface', 'includes/objects'); 14 14 15 15 /** -
development/main/includes/objects/ZModule.class.php
r24859 r24887 14 14 Loader::loadClass('ZDBTable', 'includes/objects'); 15 15 Loader::loadClass('ZModuleVar', 'includes/objects'); 16 Loader::load File('ZModuleInterface.php', 'includes/objects');16 Loader::loadInterface('ZModuleInterface', 'includes/objects'); 17 17 Loader::loadClass('ZModuleDependency', 'includes/objects'); 18 18 -
development/main/includes/objects/ZModuleDependency.class.php
r24706 r24887 11 11 */ 12 12 13 Loader::load File('ZModuleInterface.php', 'includes/objects');13 Loader::loadInterface('ZModuleInterface', 'includes/objects'); 14 14 15 15 /** -
development/main/includes/objects/ZModuleInstaller.class.php
r24712 r24887 12 12 13 13 Loader::loadClass('ZBaseObject', 'includes/objects'); 14 Loader::load File('ZModuleInstallerInterface.php', 'includes/objects');14 Loader::loadInterface('ZModuleInstallerInterface', 'includes/objects'); 15 15 Loader::loadClass('ZDBTable', 'includes/objects'); 16 16 -
development/main/includes/objects/ZModuleLegacy.class.php
r24721 r24887 12 12 13 13 Loader::loadClass('ZModule', 'includes/objects'); 14 Loader::load File('ZModuleInterface.php', 'includes/objects');14 Loader::loadInterface('ZModuleInterface', 'includes/objects'); 15 15 16 16 /** -
development/main/modules/Ephemerids/EphemeridsInstaller.class.php
r24721 r24887 12 12 13 13 Loader::loadClass('ZModuleInstaller', 'includes/objects'); 14 Loader::load File('ZModuleInstallerInterface.php', 'includes/objects');14 Loader::loadInterface('ZModuleInstallerInterface', 'includes/objects'); 15 15 Loader::loadClass('ZDBTable', 'includes/objects'); 16 16 Loader::loadClass('ZDBColumn', 'includes/objects'); -
development/main/modules/Ephemerids/EphemeridsModule.class.php
r24886 r24887 12 12 13 13 Loader::loadClass('ZModule', 'includes/objects'); 14 Loader::load File('ZModuleInterface.php', 'includes/objects');14 Loader::loadInterface('ZModuleInterface', 'includes/objects'); 15 15 Loader::loadClass('ZDBTable', 'includes/objects'); 16 16 Loader::loadClass('ZDBColumn', 'includes/objects');
