]> git.mjollnir.org Git - moodle.git/commitdiff
Changed $doc->id to $doc->docid to prevent clashes with Zend Search's internal
authormchampan <mchampan>
Fri, 28 Jul 2006 13:27:15 +0000 (13:27 +0000)
committermchampan <mchampan>
Fri, 28 Jul 2006 13:27:15 +0000 (13:27 +0000)
$doc->id

search/documents/document.php
search/documents/forum_document.php
search/documents/glossary_document.php
search/documents/wiki_document.php

index e9a9766b6496022d60e40090b8a19aa04df18aae..c5fbe3028e0b83ee785a110ac75553e8b9fd1232 100644 (file)
@@ -5,7 +5,7 @@
   
   abstract class SearchDocument extends Zend_Search_Lucene_Document {  
     public function __construct(&$doc, &$data, $document_type, $course_id, $group_id) {      
-      $this->addField(Zend_Search_Lucene_Field::Keyword('id', $doc->id));
+      $this->addField(Zend_Search_Lucene_Field::Keyword('docid', $doc->docid));
       $this->addField(Zend_Search_Lucene_Field::Text('title', $doc->title));
       $this->addField(Zend_Search_Lucene_Field::Text('author', $doc->author));
       $this->addField(Zend_Search_Lucene_Field::UnStored('contents', $doc->contents));
index 7b948d8eede3a8b93472be0b89cc06af84902596..c3e0da140c6f80fa240041439e77d29a1c2ea8d2 100644 (file)
@@ -8,7 +8,7 @@
   class ForumSearchDocument extends SearchDocument {  
     public function __construct(&$post, $forum_id, $course_id, $group_id) {
       // generic information     
-      $doc->id        = $post['id'];
+      $doc->docid     = $post['id'];
       $doc->title     = $post['subject'];
       $doc->author    = $post['firstname']." ".$post['lastname'];
       $doc->contents  = $post['message'];
index 0305b7229af99a1690be16bcf1b8c3678d0e2e13..7d9db6b5998d235a8f5c6cd504f05e28ddcaafa7 100644 (file)
@@ -12,7 +12,7 @@
   class GlossarySearchDocument extends SearchDocument {  
     public function __construct(&$entry, $glossary_id, $course_id, $group_id) {
       // generic information; required
-      $doc->id        = $entry['id'];
+      $doc->docid     = $entry['id'];
       $doc->title     = $entry['concept'];
                   
       $user = get_recordset('user', 'id', $entry['userid'])->fields;
     } //foreach
     
     return $documents;
-  } //glossary_get_content_for_index 
+  } //glossary_get_content_for_index
+    
+  function glossary_delete($info) {
+    return $info;            
+  } //glossary_delete  
   
 ?>
\ No newline at end of file
index 812e3fd239bb722b55b2f06117e944044f37b4d7..408c38f69e032e60a28d8e4efdce92fad762e1f6 100644 (file)
@@ -19,7 +19,7 @@
   class WikiSearchDocument extends SearchDocument {  
     public function __construct(&$page, $wiki_id, $course_id, $group_id) {
       // generic information; required
-      $doc->id        = $page->id;
+      $doc->docid     = $page->id;
       $doc->title     = $page->pagename;
       
       //remove '(ip.ip.ip.ip)' from wiki author field