Example #1
0
 /**
  * 儲存記錄
  */
 private function _log()
 {
     // log區 -登入成功(有登入才記log)-action = 39
     $action = 42;
     $log_webpage_id = NULL;
     $log_user_id = get_context_user_id();
     $array_data = $this->client_ip;
     kals_mobile_log($this->db, $log_webpage_id, $action, array('memo' => $array_data, 'user_id' => $log_user_id));
     context_complete();
     //寫入db
 }
Example #2
0
 /**
  * log區
  * @param Annotation $topic_annotation
  */
 private function _log($topic_annotation)
 {
     //log區-mobile瀏覽討論-action = 41
     $action = 41;
     // data: topic_id
     $log_webpage = $topic_annotation->get_append_to_webpages();
     $log_webpage_id = $log_webpage[0]->get_id();
     $log_topic_id = $topic_annotation->get_id();
     $log_user_id = get_context_user_id();
     $array_data = array('target_topic' => FALSE, 'topic_id' => $log_topic_id, 'order_by' => 'create', 'show_total_count' => TRUE);
     kals_mobile_log($this->db, $log_webpage_id, $action, array('memo' => $array_data, 'user_id' => $log_user_id));
     context_complete();
     //寫入db
 }