increaseViewCount() 공개 정적인 메소드

Increase the number of views for this item
public static increaseViewCount ( integer $id ) : array
$id integer
리턴 array
예제 #1
0
파일: Detail.php 프로젝트: forkcms/forkcms
 /**
  * Update the view count for this item
  */
 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);
 }