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.
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
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.
Recent comments
20 hours 17 min ago
1 day 1 hour ago
1 day 5 hours ago
1 day 7 hours ago
1 day 21 hours ago
1 day 21 hours ago
2 days 2 hours ago
2 days 9 hours ago
2 days 10 hours ago
2 days 11 hours ago