View Single Post
  #9  
Old 16th October 2012, 08:20
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,982 Times in 3,903 Posts
Default

The reseller_id is the id of a existing reseller were this client shall be assigned to.

Quote:
Apparently you can hand create_client() a parameter called "dafault_mailserver" without causing too much havoc.
Yes, because all unkown parameters get discarded automatically.

Quote:
What parameters are obligatory anyway?
All Parameters have to be passed to the function. See database table layout for the full list.

Quote:
But then the underlying database is all MYISAM without any referential integrity, so I suppose you can enter quite some bullshit (as long as it passes ISPconfig's validation rules, but I don't think they'll catch nonexistent IDs, do they?) without causing any immediate errors---only later when other scripts expect data to be consistent will your system crash and burn.
The remote api is designed as low level api, it is made to allow the developer to pass any parameters to the functions that have a valid type to allow usage scenarios that are not available in the interface. So the you as a developer have to ensure that the parameters that you pass to the function are logically correct.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote