Class TGMDK_ContentHandler

Description

GW処理結果JSONから応答Dtoに変換するクラス

対応する応答Dtoのプロパティ属性
・String
・String[]
・Dto
・Dto[]
※上記以外の属性に対するparse処理については動作対象外とする。

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

Located in /TGMDK_ContentHandler.php (line 23)


	
			
Class Constant Summary
ELEM_OPTION_RESULTS_PATH = "result/optionResults"
ELEM_RESULT_ROOT = "result"
SLASH = "/"
Method Summary
TGMDK_ContentHandler __construct ()
string maskedJsonResponse (mixed $responseArray)
mixed parseDto (mixed $hashData, MdkBaseDto $responseDto)
Methods
Constructor __construct (line 40)

コンストラクタ。

コンフィグファイルからデータを取得して当クラスを使用できる状態にする。

  • access: public
TGMDK_ContentHandler __construct ()
maskedJsonResponse (line 172)

レスポンスデータをマスク化してJSON形式で返却する。

  • return: マスク化したJSON形式のGW処理結果
  • access: public
string maskedJsonResponse (mixed $responseArray)
  • mixed $responseArray: 連想配列にしたGWの処理結果
parseDto (line 53)

GW処理結果JSONを解析し、指定した応答Dtoの各プロパティに設定する。

  • return: JSONを設定した応答Dto
  • access: public
mixed parseDto (mixed $hashData, MdkBaseDto $responseDto)
  • mixed $hashData: JSON形式から連想配列に変換したGW処理結果
  • MdkBaseDto $responseDto: 応答Dto
Class Constants
ELEM_OPTION_RESULTS_PATH = "result/optionResults" (line 30)
ELEM_RESULT_ROOT = "result" (line 28)
SLASH = "/" (line 26)

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