Skip to content

VDMi/ZurmoExtensionLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ZurmoExtensionLoader

Extension loader for Zurmo. Zurmo only allows 1 custom extension to be loaded, this extension allows you to make as much extensions as you like.

To use this extensionloader, clone in app/protected/extensions/extensionloader

Add the following to perInstanceConfig.php

$instanceConfig['components']['custom']['class'] = 'application.extensions.extensionloader.components.ExtensionLoaderCustomManagement';
$instanceConfig['import'][] = "application.extensions.extensionloader.*";
$instanceConfig['import'][] = "application.extensions.extensionloader.components.*";
$instanceConfig['import'][] = "application.extensions.extensionloader.utils.*";

This extension searches for extensions in app/protected/extensions/custom.

Example: app/protected/extensions/custom/AnimalLoader/AnimalLoader.php

Will automatically be loaded, the class has to be the same as the filename without the extension.

class AnimalLoader {
  function resolveCustomMetadataAndLoad() {
  }
}

This function will be executed on the cutom metadata resolve.

This extension currently only allows resolveCustomMetadataAndLoad(), do pull requests for more functions, it's easy!

public static function "function"()
{
    ExtensionLoaderInstallUtil::triggerFunction(__FUNCTION__);
}

You can also add functions to ExtensionLoaderCustomManagement when needed.

This extension is sponsored by .VDMi/, Zurmo experts!

About

This is a extension loader to load multiple custom extensions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages