PHP Класс Swiftriver\Core\DAL\Repositories\ContentRepository

Автор: mg[at]swiftly[dot]org
Показать файл Открыть проект

Открытые методы

Метод Описание
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