PHP 클래스 Swiftriver\Core\DAL\Repositories\ContentRepository

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

공개 메소드들

메소드 설명
DeleteContent ( Content[] $content ) Given an array of content items, this method removes them from the data store.
GetContent ( string[] $ids ) : Content[] Given an array of content is's, this function will fetch the content objects from the data store.
GetContentList ( string[] $parameters ) Returns an array of Swiftriver\ObjectModel\Content items based on the supplied parameters.
SaveContent ( Content[] $content ) Given a set of content items, this method will persist them to the data store, if they already exists then this method should update the values in the data store.
__construct ( string $dataContext = null ) The constructor for this repository Accepts the fully qulaified type of the IContentDataContext implemting data context for this repository

메소드 상세

DeleteContent() 공개 메소드

Given an array of content items, this method removes them from the data store.
public DeleteContent ( Content[] $content )
$content Swiftriver\Core\ObjectModel\Content[]

GetContent() 공개 메소드

Given an array of content is's, this function will fetch the content objects from the data store.
public GetContent ( string[] $ids ) : Content[]
$ids string[]
리턴 Swiftriver\Core\ObjectModel\Content[]

GetContentList() 공개 메소드

Returns an array of Swiftriver\ObjectModel\Content items based on the supplied parameters.
public GetContentList ( string[] $parameters )
$parameters string[]

SaveContent() 공개 메소드

Given a set of content items, this method will persist them to the data store, if they already exists then this method should update the values in the data store.
public SaveContent ( Content[] $content )
$content Swiftriver\Core\ObjectModel\Content[]

__construct() 공개 메소드

The constructor for this repository Accepts the fully qulaified type of the IContentDataContext implemting data context for this repository
public __construct ( string $dataContext = null )
$dataContext string