PHP 인터페이스 IParser

저자: Kalashnikov Igor ([email protected])
파일 보기 프로젝트 열기: fubralimited/php-oara 0 사용 예제들

공개 메소드들

메소드 설명
serializeJson ( string $rootName, array $itemArray, array $attributes ) : string Serializes array to json string.
serializeXml ( string $rootName, array $itemArray, array $attributes ) : string Serializes array to XML.
unserializeJson ( string $jsonString ) : array Unserialize json string to array.
unserializeXml ( string $xml ) : array Unserialize xml to array.

메소드 상세

serializeJson() 공개 메소드

Serializes array to json string.
public serializeJson ( string $rootName, array $itemArray, array $attributes ) : string
$rootName string name of root node
$itemArray array properties of item
$attributes array root node attributes
리턴 string json string or false

serializeXml() 공개 메소드

Serializes array to XML.
public serializeXml ( string $rootName, array $itemArray, array $attributes ) : string
$rootName string name of sub-root node (e.g. adspaceItem)
$itemArray array properties of item
$attributes array root node attributes
리턴 string xml or false

unserializeJson() 공개 메소드

Unserialize json string to array.
public unserializeJson ( string $jsonString ) : array
$jsonString string json string
리턴 array array or false

unserializeXml() 공개 메소드

Unserialize xml to array.
public unserializeXml ( string $xml ) : array
$xml string xml data to serialize
리턴 array array or false