/** * Loads the extension if it hasn't been loaded (using load), yet * All the dependent extensions will be loaded too. */ public function load() { if (!$this->isLoaded()) { $dependencies = $this->getManifest()->getDependencies(); foreach ($dependencies as $extId => $extVersion) { // triggers loading of extensions \common_ext_ExtensionsManager::singleton()->getExtensionById($extId); } $loader = new common_ext_ExtensionLoader($this); $loader->load(); //load all dependent extensions $this->loaded = true; } }
/** * Loads the extension if it hasn't been loaded (using load), yet */ public function load() { if (!$this->loaded) { $loader = new common_ext_ExtensionLoader($this); $loader->load(); $this->loaded = true; } }