Commit 1d0a8d1c authored by Helmo's avatar Helmo

First draft domains_domain_update

parent 355e7a9e
......@@ -65,6 +65,16 @@ class remoting_domains extends remoting {
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
public function domains_domain_delete($session_id, $primary_id)
{
......
<?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['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';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment