PHP 클래스 EDI\Interpreter

파일 보기 프로젝트 열기: sabas/edifact 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$messageTextConf

공개 메소드들

메소드 설명
__construct ( string $xmlMsg, array $xmlSeg, string $xmlSvc, array $messageTextConf = null ) Split multiple messages and process
getErrors ( ) Get errors
getJson ( $pretty = false ) Get result as json
getJsonServiceSegments ( $pretty = false ) Get json service segments
getMessages ( ) Get splitted messages
getServiceSegments ( ) Get service segments
prepare ( $parsed ) : array Split multiple messages and process
processXmlGroup ( $elm, $message, &$segmentIdx, &$array, &$errors ) Proccess an XML Group

비공개 메소드들

메소드 설명
loopMessage ( $message, $xml ) : array Transform a parsed edi in its groupings
processSegment ( $segment, $xmlMap, $segmentIdx, &$errors = null ) Add human readable keys as in Analyser
processService ( $segments ) Process UNB / UNZ segments
processXmlSegment ( $elm, $message, &$segmentIdx, &$array, &$errors ) Process an XML Segment
splitMessages ( $parsed ) : array Split multiple messages

메소드 상세

__construct() 공개 메소드

Split multiple messages and process
public __construct ( string $xmlMsg, array $xmlSeg, string $xmlSvc, array $messageTextConf = null )
$xmlMsg string Path to XML Message representation
$xmlSeg array Segments processed by EDI\Analyser::loadSegmentsXml
$xmlSvc string Service segments processed by EDI\Analyser::loadSegmentsXml
$messageTextConf array Personalisation of error messages

getErrors() 공개 메소드

Get errors
public getErrors ( )

getJson() 공개 메소드

Get result as json
public getJson ( $pretty = false )

getJsonServiceSegments() 공개 메소드

Get json service segments
public getJsonServiceSegments ( $pretty = false )

getMessages() 공개 메소드

Get splitted messages
public getMessages ( )

getServiceSegments() 공개 메소드

Get service segments
public getServiceSegments ( )

prepare() 공개 메소드

Split multiple messages and process
public prepare ( $parsed ) : array
$parsed An array coming from EDI\Parser
리턴 array

processXmlGroup() 공개 메소드

Proccess an XML Group
public processXmlGroup ( $elm, $message, &$segmentIdx, &$array, &$errors )

프로퍼티 상세

$messageTextConf 공개적으로 프로퍼티

public $messageTextConf