PHP SDK by HEXONET

ResponseTranslator

HEXONET ResponseTranslator

Table of Contents

$descriptionRegexMap  : array<string|int, mixed>
hidden class var of API description regex mappings for translation
translate()  : string
translate a raw api response

Properties

$descriptionRegexMap

hidden class var of API description regex mappings for translation

private static array<string|int, mixed> $descriptionRegexMap = ["Authorization failed; Operation forbidden by ACL" => "Authorization failed; Used Command `{COMMAND}` not white-listed by your Access Control List"]

Methods

translate()

translate a raw api response

public static translate(string $raw, array<string|int, mixed> $cmd[, array<string|int, mixed> $ph = [] ]) : string
Parameters
$raw : string

API raw response

$cmd : array<string|int, mixed>

requested API command

$ph : array<string|int, mixed> = []

list of place holder vars

Return values
string

Search results