How to write custom module/extension ?

Last modification: 2014-08-17 17:16:16

Few extensions example can be found here. I suggest to analyze few extensions there and you will get an idea how all works.

https://github.com/LiveHelperChat/livehelperchat-extensions

If you want to activate extension you have to edit

settings/settings.ini.php

and change the following part to

'extensions' => array ( 0 => 'customstatus' )

In this exmaple we are activating customstatus extension. Make sure you disable cache while developing.

  • How to attatch event listeners to extension?

Just take a look at this file

https://github.com/LiveHelperChat/livehelperchat-extensions/blob/master/customstatus/bootstrap/bootstrap.php

In this class you can define to what events your extension should listen.

  • What events does Live Helper Chat dispatches?

Just execute this search on github and you will know

https://github.com/LiveHelperChat/livehelperchat/search?utf8=%E2%9C%93&q=erLhcoreClassChatEventDispatcher%3A%3AgetInstance%28%29-%3Edispatch&type=Code

Here is example to what events Automated hosting extension is listening

https://github.com/LiveHelperChat/automated-hosting/blob/master/instancecustomer/bootstrap/bootstrap.php

Support project

Developing application takes a lot of time. You can support application by donating. There is no company behind this application and it takes away my free time. Every donation matters and does not matter how small it is!


Paypal, one time donation
Monthly donation
Bitcoin
Skrill
remdex@gmail.com


comments powered by Disqus