PHP Class Swiftriver\Core\Modules\SiSPS\ParserFactory

Show file Open project: ushahidi/Swiftriver-2011 Class Usage Examples

Public Methods

Method Description
GetParser ( string $type ) : SiSPS\Parsers\IParser Expects a string representing the class name of an object that implements the SiSPS\IParser interface. The param $type must not include the word 'Parser'. For example, supplying the $type Email will return an instance of the EmailParser object.
GetParserByPushOrigin ( $origin )
ReturnAllAvailableParsers ( )
ReturnAllAvailablePushParsers ( )

Method Details

GetParser() public static method

Expects a string representing the class name of an object that implements the SiSPS\IParser interface. The param $type must not include the word 'Parser'. For example, supplying the $type Email will return an instance of the EmailParser object.
public static GetParser ( string $type ) : SiSPS\Parsers\IParser
$type string
return SiSPS\Parsers\IParser $parser

GetParserByPushOrigin() public static method

public static GetParserByPushOrigin ( $origin )

ReturnAllAvailableParsers() public static method

public static ReturnAllAvailableParsers ( )

ReturnAllAvailablePushParsers() public static method

public static ReturnAllAvailablePushParsers ( )