PHP Class Swiftriver\Core\DAL\Repositories\ContentRepository

Author: mg[at]swiftly[dot]org
Datei anzeigen Open project: ushahidi/Swiftriver-2011

Public Methods

Method Description
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

Method Details

DeleteContent() public method

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

GetContent() public method

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[]
return Swiftriver\Core\ObjectModel\Content[]

GetContentList() public method

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

SaveContent() public method

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() public method

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