PHP 클래스 Swiftriver\Core\Modules\SiSPS\Parsers\FrontlineSMSParser

상속: implements Swiftriver\Core\Modules\SiSPS\Parsers\IParser
파일 보기 프로젝트 열기: ushahidi/Swiftriver-2011

공개 메소드들

메소드 설명
GetAndParse ( Channel $channel ) : Swiftriver\Core\ObjectModel\Content[] Implementation of IParser::GetAndParse
ListSubTypes ( ) : string[] This method returns a string array with the names of all the source types this parser is designed to parse. For example the FrontlineParser may return array("SMS");
ReturnRequiredParameters ( ) : array() This method returns an array of the required parameters that are necessary to run this parser. The Array should be in the following format: array( "SubType" => array ( ConfigurationElements ) )
ReturnType ( ) : string This method returns a string describing the type of sources it can parse. For example, the FeedsParser returns "Feeds".
localDBClose ( $myConnection )
localDBOpen ( $host, $user, $password, $database )
localDBReturnMessages ( $myConnection, $messageTable = 'message', $lastMessageDate )

비공개 메소드들

메소드 설명
getLocalContentItems ( Channel $channel, $logger ) : array() Gets content items from the server
getRemoteContentItems ( Channel $channel, $logger, string $serverURL ) : array() Gets content items from the server

메소드 상세

GetAndParse() 공개 메소드

Implementation of IParser::GetAndParse
public GetAndParse ( Channel $channel ) : Swiftriver\Core\ObjectModel\Content[]
$channel Swiftriver\Core\ObjectModel\Channel
리턴 Swiftriver\Core\ObjectModel\Content[] contentItems

ListSubTypes() 공개 메소드

This method returns a string array with the names of all the source types this parser is designed to parse. For example the FrontlineParser may return array("SMS");
public ListSubTypes ( ) : string[]
리턴 string[]

ReturnRequiredParameters() 공개 메소드

This method returns an array of the required parameters that are necessary to run this parser. The Array should be in the following format: array( "SubType" => array ( ConfigurationElements ) )
public ReturnRequiredParameters ( ) : array()
리턴 array()

ReturnType() 공개 메소드

This method returns a string describing the type of sources it can parse. For example, the FeedsParser returns "Feeds".
public ReturnType ( ) : string
리턴 string type of sources parsed

localDBClose() 공개 메소드

public localDBClose ( $myConnection )

localDBOpen() 공개 메소드

public localDBOpen ( $host, $user, $password, $database )

localDBReturnMessages() 공개 메소드

public localDBReturnMessages ( $myConnection, $messageTable = 'message', $lastMessageDate )