PHP 클래스 Swiftriver\SiCDSInterface\Parser

파일 보기 프로젝트 열기: ushahidi/Swiftriver-2011

공개 메소드들

메소드 설명
ContentIsUnique ( $json, $id )
ParseItemToRequestJson ( $item, $apiKey )
ParseResponseFromJsonToUniqueIds ( string $json ) : string[] Given the JSON returned from the SiCDS, this function attempts to parse and return an array of content item ID's that have been classified as unique.
ParseToRequestJson ( Content[] $items, string $apiKey ) : string Given a array of content items, this function will parse the diff collections of each item to JSON formtted for the SiCDS cloud service interface.

메소드 상세

ContentIsUnique() 공개 메소드

public ContentIsUnique ( $json, $id )

ParseItemToRequestJson() 공개 메소드

public ParseItemToRequestJson ( $item, $apiKey )

ParseResponseFromJsonToUniqueIds() 공개 메소드

Given the JSON returned from the SiCDS, this function attempts to parse and return an array of content item ID's that have been classified as unique.
public ParseResponseFromJsonToUniqueIds ( string $json ) : string[]
$json string
리턴 string[]

ParseToRequestJson() 공개 메소드

Given a array of content items, this function will parse the diff collections of each item to JSON formtted for the SiCDS cloud service interface.
public ParseToRequestJson ( Content[] $items, string $apiKey ) : string
$items Swiftriver\Core\ObjectModel\Content[]
$apiKey string
리턴 string