Skip to content
Snippets Groups Projects
Commit 1d0a8d1c authored by Helmo's avatar Helmo
Browse files

First draft domains_domain_update

parent 355e7a9e
No related branches found
No related tags found
2 merge requests!860Stable 3.1,!845Add domains domain update API function
...@@ -65,6 +65,16 @@ class remoting_domains extends remoting { ...@@ -65,6 +65,16 @@ class remoting_domains extends remoting {
return $this->insertQuery('../client/form/domain.tform.php', $client_id, $params); return $this->insertQuery('../client/form/domain.tform.php', $client_id, $params);
} }
//* Update a record
public function domains_domain_update($session_id, $client_id, $params)
{
if(!$this->checkPerm($session_id, 'domains_domain_update')) {
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
return false;
}
return $this->updateQuery('../client/form/domain.tform.php', $client_id, $params);
}
//* Delete a record //* Delete a record
public function domains_domain_delete($session_id, $primary_id) public function domains_domain_delete($session_id, $primary_id)
{ {
......
<?php <?php
$function_list['client_get_all,client_get,client_add,client_update,client_delete,client_get_sites_by_user,client_get_by_username,client_get_by_customer_no,client_change_password,client_get_id,client_delete_everything,client_get_emailcontact'] = 'Client functions'; $function_list['client_get_all,client_get,client_add,client_update,client_delete,client_get_sites_by_user,client_get_by_username,client_get_by_customer_no,client_change_password,client_get_id,client_delete_everything,client_get_emailcontact'] = 'Client functions';
$function_list['domains_domain_get,domains_domain_add,domains_domain_delete,domains_get_all_by_user'] = 'Domaintool functions'; $function_list['domains_domain_get,domains_domain_add,domains_domain_update,domains_domain_delete,domains_get_all_by_user'] = 'Domaintool functions';
$function_list['quota_get_by_user,trafficquota_get_by_user,mailquota_get_by_user,databasequota_get_by_user'] = 'Quota functions'; $function_list['quota_get_by_user,trafficquota_get_by_user,mailquota_get_by_user,databasequota_get_by_user'] = 'Quota functions';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment