->
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);
} /**
* {@inheritdoc}
*/
public function fetchAll($order = 'totalcount',
$limit = 5
) { assert(in_array($order,
['totalcount', 'daycount', 'timestamp'
]), "Invalid order argument."
);
return $this->connection
->
select('node_counter', 'nc'
)