PHP Class Swiftriver\Core\ObjectModel\ObjectFactories\SourceFactory

Afficher le fichier Open project: ushahidi/Swiftriver-2011 Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

CreateSourceFromJSON() public static méthode

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