PHP Класс Swiftriver\UshahidiContentPush\ContentToUshahidiAPIParser

Показать файл Открыть проект

Открытые методы

Метод Описание
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