From f50c2022660e3c4ca57554b460c8f76d36382164 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 2 Sep 2008 06:33:27 +0200 Subject: [PATCH] [svn r16206] Add recovery of index terms on item instanciation --- main/newscorm/learnpathItem.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main/newscorm/learnpathItem.class.php b/main/newscorm/learnpathItem.class.php index 343f7c0b96..a05017850f 100644 --- a/main/newscorm/learnpathItem.class.php +++ b/main/newscorm/learnpathItem.class.php @@ -53,6 +53,8 @@ class learnpathItem{ var $title; var $type; // this attribute can contain chapter|link|student_publication|module|quiz|document|forum|thread var $view_id; + var $terms; + var $search_did; var $debug = 0; //logging param /** @@ -98,7 +100,9 @@ class learnpathItem{ if(isset($row['launch_data'])){ $this->launch_data = $row['launch_data']; } - $this->save_on_close = true; + $this->terms = $row['terms']; + $this->search_did = $row['search_did']; + $this->save_on_close = true; $this->db_id = $id; //error_log('New LP - End of learnpathItem constructor for item '.$id,0);