XMLフォーマッタークラス API入出力パラメータXMLと連想配列を相互に変換するクラス
package |
Default |
---|
format( $data_array, boolean $batchGet = false) : \SCC\Api\Model\IO\{@inheritDoc}
see | \SCC\Api\Model\Impl\CommonFormatter::format() |
---|
{@inheritDoc}
boolean
バッチリクエストの場合はtrue
\SCC\Api\Model\IO\{@inheritDoc}
formatXml(\SimpleXMLElement $xml, array $data_array)
\SimpleXMLElement
array
API結果情報
getContentType() : string
string
ContentType
getPostParams( $request, $orginMethod = "") : \SCC\Api\Model\IO\{@inheritDoc}
see | \SCC\Api\Model\Impl\CommonFormatter::getPostParams() |
---|
{@inheritDoc}
{@inheritDoc}
\SCC\Api\Model\IO\{@inheritDoc}
insertCDATA(string $text, boolean $onEmpty = false)
string
テキスト
boolean
空文字でも「CDATA」付きで返すかどうか
isHash(array &$array) : boolean
array
確認対象の配列
boolean
true:連想配列
setChild(\SCC\Api\Model\IO\SimpleXMLElement &$node, string $key, string $val) : \SCC\Api\Model\IO\SimpleXMLElement
\SCC\Api\Model\IO\SimpleXMLElement
ノード
string
キー名称
string
セットする値
\SCC\Api\Model\IO\SimpleXMLElement
XMLノードに追加された子要素