Internal changes for upcoming 1.0.0.6

The next generation of server controlling with clean and powerful user interface

Moderators: oliverde8, reaby, NADEO

Post Reply
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Internal changes for upcoming 1.0.0.6

Post by reaby »

Infos to plugin developers
ExpPlugins are going some heavy internal changes, as we try to make it better for maintain and develop.
Also we try to enhance the overall code quality, some plugins we have refactored over and over, like the old menu plugin, which has gone atleast 6 different trials, old features removed, new added as idea has been re-thought. I think some parts we need to totally rewrite or atleast tidy bit, as now the features of the particular plugin is known and not much is needed to add for it.

Actual changes for plugins

The changes introduced here are already applied at dev-branch, and the old stuff is deprecated already fully.
This means plugins coded with 1.0.0.5 or before doesn't run with 1.0.0.6 and later.

If you are authoring a plugin or have coded already a plugin, some parts of your plugin needs modifications.

We have changed all methods and callback functions which starts with
old snakecase: exp_methodName
to
new camelcase: eXpMethodName

Examples

Callback function changes:

Code: Select all

//old:
public function exp_onReady() {
     // yourcode here 
}

//new:
public function eXpOnReady() { 
     // yourcode here 
}
Class method changes:

Code: Select all

// old
public function sayhello($login) {
     $this->exp_chatSendServerMessage("hello %s", null, array($login));
}

// new
public function sayhello($login) {
     $this->eXpChatSendServerMessage("hello %s", null, array($login));
}
Post Reply

Return to “eXpansion”

Who is online

Users browsing this forum: No registered users and 1 guest