]> git.mjollnir.org Git - moodle.git/commitdiff
block/search: Eliminate todo that was already done, and clean up whitespace.
authortjhunt <tjhunt>
Fri, 17 Jul 2009 08:07:50 +0000 (08:07 +0000)
committertjhunt <tjhunt>
Fri, 17 Jul 2009 08:07:50 +0000 (08:07 +0000)
blocks/search/block_search.php

index 65fabe23c9f54b047f896e1019680526b98b1e34..8ca7abe3410c61011eab252a2abc60b21bcb913d 100644 (file)
@@ -1,37 +1,34 @@
 <?php
-  
-  /* This is the global search shortcut block - a single query can be entered, and
-  * the user will be redirected to the query page where they can enter more
-  *  advanced queries, and view the results of their search. When searching from
-  *  this block, the broadest possible selection of documents is searched.
-  *  
-  *
-  *  Todo: make strings -> get_string()  
-  * 
-  * @package search
-  * @subpackage search block
-  * @author: Michael Champanis (mchampan), reengineered by Valery Fremaux 
-  * @date: 2006 06 25
-  */
-     
-  class block_search extends block_base {
-    
+
+/** This is the global search shortcut block - a single query can be entered, and
+ * the user will be redirected to the query page where they can enter more
+ *  advanced queries, and view the results of their search. When searching from
+ *  this block, the broadest possible selection of documents is searched.
+ *
+ * @package search
+ * @subpackage search block
+ * @author: Michael Champanis (mchampan), reengineered by Valery Fremaux
+ * @date: 2006 06 25
+ */
+
+class block_search extends block_base {
+
     function init() {
       $this->title = get_string('blockname', 'block_search');
       $this->cron = 1;
       $this->version = 2008031500;
-    } //init  
-    
+    } //init
+
     // only one instance of this block is required
     function instance_allow_multiple() {
       return false;
     } //instance_allow_multiple
-    
+
     // label and button values can be set in admin
     function has_config() {
       return true;
     } //has_config
-      
+
     function get_content() {
       global $CFG;
 
@@ -43,9 +40,9 @@
       if ($this->content !== NULL) {
         return $this->content;
       } //if
-      
+
       $this->content = new stdClass;
-      
+
       //lazy check for the moment
       //fetch values if defined in admin, otherwise use defaults
       $label  = (!empty($CFG->block_search_text)) ? $CFG->block_search_text : get_string('searchmoodle', 'block_search');
 
       //no footer, thanks
       $this->content->footer = '';
-      
-      return $this->content;      
+
+      return $this->content;
     } //get_content
-    
+
     function specialisation() {
       //empty!
     } //specialisation
-    
+
     /**
-    * wraps up to search engine cron
-    *
-    */
+     * wraps up to search engine cron
+     */
     function cron(){
         global $CFG;
-        
+
         include($CFG->dirroot.'/search/cron.php');
     }
-      
+
   } //block_search
 
-?>