opensrs\OMA::send_cmd PHP Method

send_cmd() public static method

A wrapper method to send a command to the server.
Since: 3.3
public static send_cmd ( string $meth, hash $req ) : hash
$meth string A name of the OMA method
$req hash Containing header key/value pairs
return hash $res Containing header key/value pairs
    public static function send_cmd($meth, $req)
    {
        $res = self::call($meth, $req);
        return $res;
    }

Usage Example

 public static function call($data)
 {
     if (self::validate($data)) {
         return OMA::send_cmd('get_company', $data);
     }
 }
All Usage Examples Of opensrs\OMA::send_cmd