Versioning of Plugins

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!

Re: Versioning of Plugins

Postby Phrax » Tue Apr 03, 2012 8:43 am

An alternative to classes could be prefixed functions, such as:

Code: Select all
function myplugin_name(){
// return name...
}

function myplugin_dependencies(){
return array(
// ...
);
}


The order the plugins will be loaded could be figured out by the pluginloader. It would first gather all the information given by the functions/classes, so all dependencies, versions, name etc. and then figure out the best and efficient order of loading the plugins. So an additional file for the information would be the best way.

Concerning the discussion for PHP 4/5 I would clearly say PHP 5 but I think that is another point not discussed here... To be honest my current development already depends on classes, and main information of the plugins are available through static functions or constants.
Phrax
 
Posts: 29
Joined: Mon Apr 18, 2011 11:55 am
Location: Aachen, Germany

Previous

Return to Open Development

Who is online

Users browsing this forum: No registered users and 3 guests