PHP Класс Swiftriver\Core\Modules\DataContext\MySql_V1\DataContext

Наследование: implements Swiftriver\Core\DAL\DataContextInterfaces\IDataContext
Показать файл Открыть проект

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

Метод Описание
AddRegisteredCoreAPIKey ( string $key ) : boolean Given a new APIKey, this method adds it to the data store or registered API keys.
DeleteContent ( Content[] $content ) Given an array of content items, this method removes them from the data store.
GetChannelsById ( string[] $ids ) : Channel[] Given the IDs of Channels, this method gets them from the underlying data store
GetContent ( string[] $ids, $orderby = null ) : Content[] Given an array of content is's, this function will fetch the content objects from the data store.
GetContentList ( string[] $parameters )
GetSourcesById ( string[] $ids ) : Source[] Given the IDs of Sources, this method gets them from the underlying data store
IsRegisterdCoreAPIKey ( string $key ) : boolean Checks that the given API Key is registed for this Core install
ListAllChannels ( ) : Channel[] Lists all the current Channel in the core
ListAllSources ( ) : Source[] Lists all the current Source in the core
RecordSourceScoreChange ( string $sourceId, string $markerId, integer $change, $reason = null ) This method redords the fact that a marker (sweeper) has changed the score of a source by marking a content items as either 'acurate', 'chatter' or 'inacurate'
RemoveChannels ( string[] $ids ) Given a list of IDs this method removes the Channels from the data store.
RemoveRegisteredCoreAPIKey ( $key ) : boolean Given an APIKey, this method will remove it from the data store of registered API Keys Returns true on sucess
RunQuery ( $query )
SaveChannels ( Channel[] $channels ) Adds a list of new Channels to the data store
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.
SelectNextDueChannel ( DateTime $time ) : Channel Given a date time, this function returns the next due Channel.

Приватные методы

Метод Описание
AddPropertiesToDataSoreItem ( $dataStoreItem, $sourceItem, $propertiesArray )

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

AddRegisteredCoreAPIKey() публичный статический Метод

Given a new APIKey, this method adds it to the data store or registered API keys.
public static AddRegisteredCoreAPIKey ( string $key ) : boolean
$key string
Результат boolean

DeleteContent() публичный статический Метод

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

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

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

GetContent() публичный статический Метод

Given an array of content is's, this function will fetch the content objects from the data store.
public static GetContent ( string[] $ids, $orderby = null ) : Content[]
$ids string[]
Результат Swiftriver\Core\ObjectModel\Content[]

GetContentList() публичный статический Метод

public static GetContentList ( string[] $parameters )
$parameters string[]

GetSourcesById() публичный статический Метод

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

IsRegisterdCoreAPIKey() публичный статический Метод

Inhereted from IAPIKeyDataContext
public static IsRegisterdCoreAPIKey ( string $key ) : boolean
$key string
Результат boolean

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

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

ListAllSources() публичный статический Метод

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

RecordSourceScoreChange() публичный статический Метод

This method redords the fact that a marker (sweeper) has changed the score of a source by marking a content items as either 'acurate', 'chatter' or 'inacurate'
public static RecordSourceScoreChange ( string $sourceId, string $markerId, integer $change, $reason = null )
$sourceId string
$markerId string
$change integer

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

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

RemoveRegisteredCoreAPIKey() публичный статический Метод

Given an APIKey, this method will remove it from the data store of registered API Keys Returns true on sucess
public static RemoveRegisteredCoreAPIKey ( $key ) : boolean
Результат boolean

RunQuery() публичный статический Метод

public static RunQuery ( $query )

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

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

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 static SaveContent ( Content[] $content )
$content Swiftriver\Core\ObjectModel\Content[]

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

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