VeriTrans 4G MDK

TGMDK_ResElementProcessor
in package

レスポンスをパースし、指定のタグの値を取得する<br>

Tags
category

Veritrans

copyright

VeriTrans Inc.

access

public

author

VeriTrans Inc.

Table of Contents

$data_array  : mixed
連想配列にした結果
__construct()  : mixed
コンストラクタ。<br> JSON文字列を連想配列に設定する。
get_first()  : null|mixed
引数のパス文字列に紐付く値の配列の一番目を返す。
get_list()  : null|mixed
引数のパス文字列に紐付く値を配列で返す。
get_value()  : null|mixed
値を取得する。<br> サブオブジェクトの場合は再帰的に実施する。

Properties

Methods

__construct()

コンストラクタ。<br> JSON文字列を連想配列に設定する。

public __construct(string $json_str) : mixed
Parameters
$json_str : string

JSON文字列

Tags
access

public

Return values
mixed

get_first()

引数のパス文字列に紐付く値の配列の一番目を返す。

public get_first(string $path) : null|mixed
Parameters
$path : string

データに紐付くパス文字列

Tags
access

public

Return values
null|mixed

取得された配列の一番目の文字列

get_list()

引数のパス文字列に紐付く値を配列で返す。

public get_list(string $path) : null|mixed
Parameters
$path : string

データに紐付くパス文字列

Tags
access

public

Return values
null|mixed

取得された値の配列

get_value()

値を取得する。<br> サブオブジェクトの場合は再帰的に実施する。

public get_value(mixed $data, mixed $keys, int $level) : null|mixed
Parameters
$data : mixed
$keys : mixed
$level : int
Return values
null|mixed

Search results