PHP Class Swiftriver\Core\ObjectModel\ObjectFactories\SourceFactory

Mostrar archivo Open project: ushahidi/Swiftriver-2011 Class Usage Examples

Public Methods

Method Description
CreateSourceFromIdentifier ( string $identifier, $trusted = false ) : Source Creats a new Source object from a unique id
CreateSourceFromJSON ( JSON $json ) : Source Returns a new Source object from the JSON encoded string of a Source object

Method Details

CreateSourceFromIdentifier() public static method

Creats a new Source object from a unique id
public static CreateSourceFromIdentifier ( string $identifier, $trusted = false ) : Source
$identifier string
return Swiftriver\Core\ObjectModel\Source

CreateSourceFromJSON() public static method

Returns a new Source object from the JSON encoded string of a Source object
public static CreateSourceFromJSON ( JSON $json ) : Source
$json JSON
return Swiftriver\Core\ObjectModel\Source