芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/mctv/lib/Storage/TimeSeriesStoreInterface.php
. */ namespace Xibo\Storage; use Carbon\Carbon; use Xibo\Factory\CampaignFactory; use Xibo\Factory\DisplayFactory; use Xibo\Factory\LayoutFactory; use Xibo\Factory\MediaFactory; use Xibo\Factory\WidgetFactory; use Xibo\Service\LogServiceInterface; use Xibo\Support\Exception\GeneralException; /** * Interface TimeSeriesStoreInterface * @package Xibo\Service */ interface TimeSeriesStoreInterface { /** * Time series constructor. * @param array $config */ public function __construct($config = null); /** * Set Time series Dependencies * @param LogServiceInterface $logger * @param LayoutFactory $layoutFactory * @param CampaignFactory $campaignFactory * @param MediaFactory $mediaFactory * @param WidgetFactory $widgetFactory * @param DisplayFactory $displayFactory * @param \Xibo\Entity\DisplayGroup $displayGroupFactory */ public function setDependencies( $logger, $layoutFactory, $campaignFactory, $mediaFactory, $widgetFactory, $displayFactory, $displayGroupFactory ); /** * @param \Xibo\Storage\StorageServiceInterface $store * @return $this */ public function setStore($store); /** * Process and add a single statdata to array * @param $statData array */ public function addStat($statData); /** * Write statistics to DB */ public function addStatFinalize(); /** * Get the earliest date * @return \Carbon\Carbon|null */ public function getEarliestDate(); /** * Get statistics * @param $filterBy array[mixed]|null * @throws GeneralException * @return TimeSeriesResultsInterface */ public function getStats($filterBy = []); /** * Get total count of export statistics * @param $filterBy array[mixed]|null * @throws GeneralException * @return TimeSeriesResultsInterface */ public function getExportStatsCount($filterBy = []); /** * Delete statistics * @param $toDt Carbon * @param $fromDt Carbon|null * @param $options array * @throws GeneralException * @return int number of deleted stat records * @throws \Exception */ public function deleteStats($toDt, $fromDt = null, $options = []); /** * Execute query * @param $options array|[] * @throws GeneralException * @return array */ public function executeQuery($options = []); /** * Get the statistic store * @return string */ public function getEngine(); }