Frontend\Modules\Faq\Actions\Detail::updateStatistics PHP Method

updateStatistics() private method

Update the view count for this item
private updateStatistics ( )
    private function updateStatistics()
    {
        // view has been counted
        if (\SpoonSession::exists('viewed_faq_' . $this->record['id'])) {
            return;
        }
        // update view count
        FrontendFaqModel::increaseViewCount($this->record['id']);
        // save in session so we know this view has been counted
        \SpoonSession::set('viewed_faq_' . $this->record['id'], true);
    }