[geeklog-cvs] geeklog-1.3/system/classes plugin.class.php,1.8,1.9

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Fri May 2 00:04:20 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/system/classes
In directory internal.geeklog.net:/tmp/cvs-serv17614

Modified Files:
	plugin.class.php 
Log Message:
minor tweaks for expanded search support (not implemented by search class yet)

Index: plugin.class.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/system/classes/plugin.class.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** plugin.class.php	20 Feb 2003 19:21:31 -0000	1.8
--- plugin.class.php	2 May 2003 04:04:18 -0000	1.9
***************
*** 56,59 ****
--- 56,64 ----
      var $num_itemssearched = 0; 
      var $num_searchheadings = 0;
+     /**
+     * @access private
+     * @var boolean
+     */
+     var $_expandedSearchSupport = false;
  
      // Submission properties
***************
*** 84,102 ****
      function reset()
      {
!         $adminlabel = '';
!         $aadminurl = '';
!         $plugin_image = '';
!         $num_submissions = 0;
!         $plugin_name = '';
!         $searchlabel = '';
!         $searchheading = array();
!         $num_searchresults = 0;
!         $searchresults = array();
!         $num_itemssearched = 0;
!         $num_searchheadings = 0; 
!         $submissionlabel = '';
!         $submissionhelpfile = '';
!         $getsubmissionssql = '';
!         $submissionheading = array();
      }
     
--- 89,107 ----
      function reset()
      {
!         $this->adminlabel = '';
!         $this->adminurl = '';
!         $this->plugin_image = '';
!         $this->num_submissions = 0;
!         $this->plugin_name = '';
!         $this->searchlabel = '';
!         $this->searchheading = array();
!         $this->num_searchresults = 0;
!         $this->searchresults = array();
!         $this->num_itemssearched = 0;
!         $this->num_searchheadings = 0; 
!         $this->submissionlabel = '';
!         $this->submissionhelpfile = '';
!         $this->getsubmissionssql = '';
!         $this->submissionheading = array();
      }
     
***************
*** 136,140 ****
          $this->num_submissions = $this->num_submissions + 1;
      }
  }
  
! ?>
--- 141,176 ----
          $this->num_submissions = $this->num_submissions + 1;
      }
+     
+     /**
+     * Sets whether or not the plugin supports expanded search
+     * results
+     *
+     * @author Tony Bibbs <tony AT geeklog DOT net>
+     * @access public
+     * @param boolean $switch True if expanded search is supported otherwise false
+     *
+     */
+     function setExpandedSearchSupport($switch)
+     {
+         if (!is_bool($switch)) {
+             $switch = false;
+         }
+         
+         $this->_expandedSearchSupport = $switch;
+     }
+     
+     /**
+     * Returns if plugin supports expanded searches
+     *
+     * @author Tony Bibbs <tony AT geeklog DOT net>
+     * @access public
+     * @return boolean True if expanded search is supported otherwise false
+     *
+     */
+     function supportsExpandedSearch()
+     {
+         return $this->_expandedSearchSupport;
+     }
  }
  
! ?>
\ No newline at end of file





More information about the geeklog-cvs mailing list