/**
* {@inheritdoc}
*/
public function fetchViews($ids) { $views =
$this->connection
->
select('node_counter', 'nc'
) ->
fields('nc',
['totalcount', 'daycount', 'timestamp'
]) ->
condition('nid',
$ids, 'IN'
) ->
execute() ->
fetchAll();
foreach ($views as $id =>
$view) { $views[$id] =
new StatisticsViewsResult($view->totalcount,
$view->daycount,
$view->timestamp
);
} return $views;
} /**
* {@inheritdoc}
*/
public function fetchView($id) { $views =
$this->
fetchViews([$id]);
return reset($views);
}