PHP 클래스 Swiftriver\Core\ObjectModel\ObjectFactories\ContentFactory

저자: mg[at]swiftly[dot]org
파일 보기 프로젝트 열기: ushahidi/Swiftriver-2011 1 사용 예제들

공개 메소드들

메소드 설명
CreateContent ( Source $source, string $json = null ) : Content Given a source and optional content JSON, this factory method creates a new content item associated with the given source.

메소드 상세

CreateContent() 공개 정적인 메소드

If JSON is passed in then this is used to build the content, if not, then source is set and a new unique ID is generated.
public static CreateContent ( Source $source, string $json = null ) : Content
$source Swiftriver\Core\ObjectModel\Source
$json string
리턴 Swiftriver\Core\ObjectModel\Content