I have the following code with two functions:
public function getClientTemplates(){
$client_id = 31;
$this->Send('client_get', compact(array('client_id')));
}
public function Send($action, $post){
extract($post);
try {
$data = $this->soap->$action($post);
} catch (SoapFault $e) {
$this->addError('ISPConfig said: SOAP Error. '.$e->getMessage());
}
}
I have a SOAP call that needs some parameters, but I can not know how many parameters the function of the time requests.
As it is there in the code I compact and extract the variables, but I do not know how to send them without knowing their names.