#1  
Old 28th January 2013, 14:57
Xenocide Xenocide is offline
Member
 
Join Date: Sep 2010
Posts: 59
Thanks: 13
Thanked 10 Times in 9 Posts
Default Extending API

Hi Guys,

Is it possible to extend the API using plugins?

I just want to add functions like sites_get_domain_by_domainname etc to check a site exists before creating it but obviously don't want to edit the core files.

Cheers
Reply With Quote
Sponsored Links
  #2  
Old 28th January 2013, 17:23
Xenocide Xenocide is offline
Member
 
Join Date: Sep 2010
Posts: 59
Thanks: 13
Thanked 10 Times in 9 Posts
Default

If I were to make a new file and include it from the config file (doesn't get over written?) and made a class which extends the remoting class, then changed interface/web/remote.index.php to read $app->load('remoting_other_class');.. would that work?
Reply With Quote
  #3  
Old 28th January 2013, 19:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,495
Thanks: 835
Thanked 5,534 Times in 4,352 Posts
Default

Quote:
Is it possible to extend the API using plugins?
No.

Quote:
I just want to add functions like sites_get_domain_by_domainname etc to check a site exists before creating it but obviously don't want to edit the core files.
No need to add a new function for that, you can esily do this with the current functions:

$domain_record = $client->sites_web_domain_get($session_id, array('domain' => 'mydomain.tld'));
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
Xenocide (28th January 2013)
  #4  
Old 28th January 2013, 19:31
Xenocide Xenocide is offline
Member
 
Join Date: Sep 2010
Posts: 59
Thanks: 13
Thanked 10 Times in 9 Posts
 
Default

You blow my mind. Thank you. Fantastic!!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Domain Name + SSL Purchasing/Setup API agentmoller001 Plugins/Modules/Addons 14 21st August 2014 10:47
API for third party modules SupuS General 1 6th October 2012 11:52
API domains_domain_add mBull Developers' Forum 2 28th February 2012 22:17
Folder Protection API snowfly General 4 9th January 2012 09:15
ISPConfig3 + API + BoxBilling class450dude Installation/Configuration 3 22nd August 2011 23:32


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


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