PHP Class opensrs\OMA

Since: 3.3
Mostra file Open project: opensrs/osrs-toolkit-php Class Usage Examples

Public Methods

Method Description
__construct ( $opt = [] )
send_cmd ( string $meth, hash $req ) : hash A wrapper method to send a command to the server.

Private Methods

Method Description
call ( string $method, hash $request ) : hash Method to send a command to the server using CURL.

Method Details

__construct() public method

public __construct ( $opt = [] )

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