PHP 클래스 Swiftriver\UshahidiPassivePush\ContentToUshahidiAPIParser

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

공개 메소드들

메소드 설명
ParseContentItemToUshahidiAPIFormat ( Content $content ) : string[] Given a Content items, this function parses the properties of the content item into the format required by the Ushahidi API.

비공개 메소드들

메소드 설명
ExtractDateFromContent ( Content $content ) : time Extract the incident date from the content item
ExtractDescriptionFromContent ( $content )
ExtractLocationDataFromContent ( Content $content ) : GisData Returns the most appropriate long and latt from the given Content item.
ExtractLocationNameFromContent ( Content $content ) : string Given a content item, this function extracts the first where tag from its tags collection or returns 'unknown'
ExtractUshahidiCategoriesFromContent ( Content $content ) : string Returns the comma seporated list of Ushahidi categories

메소드 상세

ParseContentItemToUshahidiAPIFormat() 공개 메소드

Given a Content items, this function parses the properties of the content item into the format required by the Ushahidi API.
public ParseContentItemToUshahidiAPIFormat ( Content $content ) : string[]
$content Swiftriver\Core\ObjectModel\Content
리턴 string[] parameters