SF.net SVN: phpwiki:[10952] trunk/lib/WikiDB/backend/dbaBase.php

vargenau--- via phpwiki-checkins <[email protected]> Thu, 27 Jan 2022 15:01:46 +0000
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10952
          http://sourceforge.net/p/phpwiki/code/10952
Author:   vargenau
Date:     2022-01-27 15:01:46 +0000 (Thu, 27 Jan 2022)
Log Message:
-----------
Add class properties

Modified Paths:
--------------
    trunk/lib/WikiDB/backend/dbaBase.php

Modified: trunk/lib/WikiDB/backend/dbaBase.php
===================================================================
--- trunk/lib/WikiDB/backend/dbaBase.php	2022-01-27 14:41:25 UTC (rev 10951)
+++ trunk/lib/WikiDB/backend/dbaBase.php	2022-01-27 15:01:46 UTC (rev 10952)
@@ -65,6 +65,11 @@
 class WikiDB_backend_dbaBase
     extends WikiDB_backend
 {
+    public $_db;
+    public $_linkdb;
+    public $_pagedb;
+    public $_dbdb;
+
     function __construct(&$dba)
     {
         $this->_db = &$dba;
@@ -380,7 +385,6 @@
         $count = 0;
         for ($page = $pagedb->firstkey(); $page !== false; $page = $pagedb->nextkey()) {
             if (!$page) {
-                assert(!empty($page));
                 continue;
             }
             if ($exclude and in_array($page, $exclude)) continue;
@@ -408,7 +412,6 @@
         }
         for ($page = $pagedb->firstkey(); $page !== false; $page = $pagedb->nextkey()) {
             if (!$page) {
-                assert(!empty($page));
                 continue;
             }
             if ($exclude and in_array($page, $exclude)) continue;
@@ -746,6 +749,8 @@
     extends WikiDB_backend_iterator
 {
     // fixed for linkrelations
+    public $_backend;
+
     function __construct($backend, $pages, $options = array())
     {
         $this->_backend = $backend;
@@ -803,6 +808,9 @@
 
 class WikiDB_backend_dbaBase_linktable
 {
+    public $found_relations;
+    public $_db;
+
     function __construct(&$dba)
     {
         $this->_db = &$dba;
@@ -826,7 +834,6 @@
                     $linksonly[] = array('pagename' => $link['linkto']);
                 }
             }
-            return $linksonly;
         } else {
             $links = $this->_get_links($reversed ? 'i' : 'o', $page);
             $linksonly = array();
@@ -836,8 +843,8 @@
                 } else
                     $linksonly[] = $link;
             }
-            return $linksonly;
         }
+        return $linksonly;
     }
 
     // fixed: relations ready
@@ -999,7 +1006,7 @@
         return $data ? unserialize($data) : array();
     }
 
-    function _set_links($which, $page, &$links)
+    function _set_links($which, $page, $links)
     {
         $key = $which . $page;
         if ($links)

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.