HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   Write own APi script (http://www.howtoforge.com/forums/showthread.php?t=57353)

Pida 21st May 2012 08:13

Write own APi script
 
Hello all,

I'm writing a module for ISPConfig, but I need to write own api scripts for this module.
Is there any way how to write own api methods what are will upgrade safe in the future?

One way is a write own methods to lib/classes/remote.inc.php, but it's not upgrade safe.

Thank you for your reply...

(sorry for my english)

till 21st May 2012 08:33

Create a new custom remote class that extends the class in remote.inc.php so that all fnctions from the original file will be available and you implement only the new functions in your class, then create a new remote api connector file by makeing a copy of the web/remote/index.php file that binds your own class to the soap handler.

Pida 21st May 2012 08:49

Thank you till


All times are GMT +2. The time now is 11:23.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.