opensrs\OMA::send_cmd PHP 메소드

send_cmd() 공개 정적인 메소드

A wrapper method to send a command to the server.
부터: 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
리턴 hash $res Containing header key/value pairs
    public static function send_cmd($meth, $req)
    {
        $res = self::call($meth, $req);
        return $res;
    }

Usage Example

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