PHP Class Swiftriver\Core\DAL\Repositories\ContentRepository

Author: mg[at]swiftly[dot]org
Afficher le fichier Open project: ushahidi/Swiftriver-2011

Méthodes publiques

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

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

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[]
Résultat Swiftriver\Core\ObjectModel\Content[]

GetContentList() public méthode

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

SaveContent() public méthode

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

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