Addshore has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/154678

Change subject: Use public instead of var in classes
......................................................................

Use public instead of var in classes

Change-Id: Idc25b8ce031b64a48cd1f5b69566cf72cd4e8eac
---
M SolrSearch.php
M SolrSearchFieldSet.php
M templates/SolrSearchTemplate_FIS.php
M templates/SolrSearchTemplate_Standart.php
4 files changed, 37 insertions(+), 37 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SolrStore 
refs/changes/78/154678/1

diff --git a/SolrSearch.php b/SolrSearch.php
index 8f02495..2ce0961 100644
--- a/SolrSearch.php
+++ b/SolrSearch.php
@@ -14,13 +14,13 @@
  */
 class SolrSearch extends SearchEngine {
 
-       var $limit = 10;
-       var $offset = 0;
-       var $prefix = '';
-       var $searchTerms = array( );
-       var $namespaces = array( NS_MAIN );
-       var $showRedirects = false;
-       var $solrTalker;
+       public $limit = 10;
+       public $offset = 0;
+       public $prefix = '';
+       public $searchTerms = array( );
+       public $namespaces = array( NS_MAIN );
+       public $showRedirects = false;
+       public $solrTalker;
 
        function __construct( $db = null ) {
                global $wgSolrTalker;
diff --git a/SolrSearchFieldSet.php b/SolrSearchFieldSet.php
index 926fbcc..8d90651 100644
--- a/SolrSearchFieldSet.php
+++ b/SolrSearchFieldSet.php
@@ -21,11 +21,11 @@
  */
 class SolrSearchFieldSet {
 
-       var $mName;
-       var $mFields;
-       var $mLable;
-       var $mQuery;
-       var $mFieldSeperator;
+       public $mName;
+       public $mFields;
+       public $mLable;
+       public $mQuery;
+       public $mFieldSeperator;
 
        public function __construct( $name, $fields = 'search', $lable = 
'Alles', $query = null, $fieldSeperator = null ) {
                $this->mName = $name;
diff --git a/templates/SolrSearchTemplate_FIS.php 
b/templates/SolrSearchTemplate_FIS.php
index 1824e90..b63d3db 100644
--- a/templates/SolrSearchTemplate_FIS.php
+++ b/templates/SolrSearchTemplate_FIS.php
@@ -18,21 +18,21 @@
  */
 class SolrSearchTemplate_FIS {
 
-       var $mTitle = null;
-       var $mRedirectTitle = null;
-       var $mHighlightSection = null;
-       var $mSectionTitle = null;
-       var $mDate = null;
-       var $mScore = null;
-       var $mSize = null;
-       var $Inhalt_de_t = null;
-       var $mHighlightText = null;
-       var $mHighlightTitle = null;
-       var $mWordCount = null;
-       var $category = null;
-       var $higherdept = null;
-       var $maindept = null;
-       var $methode = null;
+       public $mTitle = null;
+       public $mRedirectTitle = null;
+       public $mHighlightSection = null;
+       public $mSectionTitle = null;
+       public $mDate = null;
+       public $mScore = null;
+       public $mSize = null;
+       public $Inhalt_de_t = null;
+       public $mHighlightText = null;
+       public $mHighlightTitle = null;
+       public $mWordCount = null;
+       public $category = null;
+       public $higherdept = null;
+       public $maindept = null;
+       public $methode = null;
 
        public function applyTemplate( $xml ) {
                global $wgSolrFields;
diff --git a/templates/SolrSearchTemplate_Standart.php 
b/templates/SolrSearchTemplate_Standart.php
index 0c86a6e..212ea32 100644
--- a/templates/SolrSearchTemplate_Standart.php
+++ b/templates/SolrSearchTemplate_Standart.php
@@ -13,16 +13,16 @@
  */
 class SolrSearchTemplate_Standart {
 
-       var $mTitle = null;
-       var $mRedirectTitle = null;
-       var $mHighlightSection = null;
-       var $mSectionTitle = null;
-       var $mDate = null;
-       var $mScore = null;
-       var $mSize = null;
-       var $mHighlightText = null;
-       var $mHighlightTitle = null;
-       var $mWordCount = null;
+       public $mTitle = null;
+       public $mRedirectTitle = null;
+       public $mHighlightSection = null;
+       public $mSectionTitle = null;
+       public $mDate = null;
+       public $mScore = null;
+       public $mSize = null;
+       public $mHighlightText = null;
+       public $mHighlightTitle = null;
+       public $mWordCount = null;
 
        public function applyTemplate( $xml ) { // DONT TOUCH
                $snipmax = 50;

-- 
To view, visit https://gerrit.wikimedia.org/r/154678
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idc25b8ce031b64a48cd1f5b69566cf72cd4e8eac
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SolrStore
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to