Class TGMDK_ResElementProcessor

Description

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

  • author: VeriTrans Inc.
  • copyright: VeriTrans Inc.
  • access: public

Located in /TGMDK_ResElementProcessor.php (line 16)


	
			
Method Summary
TGMDK_ResElementProcessor __construct (string $json_str)
null|mixed get_first (string $path)
null|mixed get_list (string $path)
string get_trad_url ()
null|mixed get_value (mixed $data, mixed $keys, int $level)
Methods
Constructor __construct (line 28)

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

  • access: public
TGMDK_ResElementProcessor __construct (string $json_str)
  • string $json_str: JSON文字列
get_first (line 97)

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

  • return: 取得された配列の一番目の文字列
  • access: public
null|mixed get_first (string $path)
  • string $path: データに紐付くパス文字列
get_list (line 50)

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

  • return: 取得された値の配列
  • access: public
null|mixed get_list (string $path)
  • string $path: データに紐付くパス文字列
get_trad_url (line 39)

当クラスのコンストラクタで解析したXMLから定数のQUERY_TRAD_URLに紐付く値を取得する。

  • return: TradのURL
  • access: public
string get_trad_url ()
get_value (line 64)

値を取得する。

サブオブジェクトの場合は再帰的に実施する。

  • access: public
null|mixed get_value (mixed $data, mixed $keys, int $level)
  • mixed $data
  • mixed $keys
  • int $level

Documentation generated on Tue, 12 Mar 2024 14:05:22 +0900 by phpDocumentor 1.4.4