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

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

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

Метод Описание
GetChannelsById ( string[] $ids ) : Channel[] Given the IDs of Channels, this method gets them from the underlying data store
ListAllChannels ( ) : Channel[] Lists all the current Channel in the core
RemoveChannels ( string[] $ids ) Given a list of IDs this method removes the Channels from the data store.
SaveChannels ( Channel[] $channels ) Adds a list of new Channels to the data store
SelectNextDueChannel ( DateTime $time ) : Channel Given a date time, this function returns the next due Channel.
__construct ( string $dataContext = null ) The constructor for this repository Accepts the fully qulaified type of the IDataContext implemting data context for this repository

Описание методов

GetChannelsById() публичный Метод

Given the IDs of Channels, this method gets them from the underlying data store
public GetChannelsById ( string[] $ids ) : Channel[]
$ids string[]
Результат Swiftriver\Core\ObjectModel\Channel[]

ListAllChannels() публичный Метод

Lists all the current Channel in the core
public ListAllChannels ( ) : Channel[]
Результат Swiftriver\Core\ObjectModel\Channel[]

RemoveChannels() публичный Метод

Given a list of IDs this method removes the Channels from the data store.
public RemoveChannels ( string[] $ids )
$ids string[]

SaveChannels() публичный Метод

Adds a list of new Channels to the data store
public SaveChannels ( Channel[] $channels )
$channels Swiftriver\Core\ObjectModel\Channel[]

SelectNextDueChannel() публичный Метод

Given a date time, this function returns the next due Channel.
public SelectNextDueChannel ( DateTime $time ) : Channel
$time DateTime
Результат Swiftriver\Core\ObjectModel\Channel

__construct() публичный Метод

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