Automation processes

Discussion in 'Developers' Forum' started by stefanmcds-mnt, Dec 17, 2014.

  1. I am developing a module epp client, I implemented a procedure for the registration of the domain which includes of course the data for the registrant and admin.
    I would like, after that these data were included in the tables of 'eppclient, creating at the same time also:
    - The customer
    - Dns
    - The site
    - Emails
    Which is the best solution to follow?
    Use the remote functions? There is another procedure shorter?
    how can I change the tread and indicate solved?
    Once the module is working and this in its entirety, I'll publish on git hub
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can either sue the remote api, but this would involve the creation of a remote user or you insert the records directly in the database with the datalogInsert(...) function of the db class. But take care that the datalogInsert is only inserting the data + creating the datalog record, it does not do any additional value ckecking or other tasks that might be nescessary in other tables for this record.
  3. The use of remote functions is peculiar architecture client server, but in my case is on the same server so I thought of developing a class specifically inspired the various classes of the procedures involved. In order to eviter to waste much time in search of the sections that interest me you can have a list of classes and functions to use?
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The most interesting functions are the datalog functions from the db library that I mentioned above, thats what we use in all core modules only. What you can do if you want to have a more abstract api is that you write a local wrapper that loads the remote functions to be used locally without involving soap.

Share This Page