From: <var...@us...> - 2014-07-17 16:12:39
|
Revision: 8982 http://sourceforge.net/p/phpwiki/code/8982 Author: vargenau Date: 2014-07-17 16:12:36 +0000 (Thu, 17 Jul 2014) Log Message: ----------- Use public when needed Modified Paths: -------------- trunk/lib/DbSession/ADODB.php trunk/lib/DbSession/PDO.php trunk/lib/WikiDB/backend/ADODB.php trunk/lib/WikiDB/backend/PDO.php trunk/lib/WikiDB/backend/file.php Modified: trunk/lib/DbSession/ADODB.php =================================================================== --- trunk/lib/DbSession/ADODB.php 2014-07-17 15:47:03 UTC (rev 8981) +++ trunk/lib/DbSession/ADODB.php 2014-07-17 16:12:36 UTC (rev 8982) @@ -86,7 +86,7 @@ * @return boolean true just a variable to notify PHP that everything * is good. */ - private function open($save_path, $session_name) + public function open($save_path, $session_name) { //$this->log("_open($save_path, $session_name)"); return true; @@ -100,7 +100,7 @@ * @return boolean true just a variable to notify PHP that everything * is good. */ - private function close() + public function close() { //$this->log("_close()"); return true; @@ -112,7 +112,7 @@ * @param string $id an id of current session * @return string */ - private function read($id) + public function read($id) { //$this->log("_read($id)"); $dbh = $this->_connect(); @@ -150,7 +150,7 @@ * @return boolean true if data saved successfully and false * otherwise. */ - private function write($id, $sess_data) + public function write($id, $sess_data) { if (defined("WIKI_XMLRPC") or defined("WIKI_SOAP")) return false; @@ -199,7 +199,7 @@ * @param string $id * @return boolean true */ - private function destroy($id) + public function destroy($id) { $dbh = $this->_connect(); $table = $this->_table; @@ -217,7 +217,7 @@ * @param int $maxlifetime session's time to live. * @return boolean true */ - private function gc($maxlifetime) + public function gc($maxlifetime) { $dbh = $this->_connect(); $table = $this->_table; Modified: trunk/lib/DbSession/PDO.php =================================================================== --- trunk/lib/DbSession/PDO.php 2014-07-17 15:47:03 UTC (rev 8981) +++ trunk/lib/DbSession/PDO.php 2014-07-17 16:12:36 UTC (rev 8982) @@ -64,7 +64,7 @@ * @return boolean true just a variable to notify PHP that everything * is good. */ - private function open($save_path, $session_name) + public function open($save_path, $session_name) { //$this->log("_open($save_path, $session_name)"); return true; @@ -78,7 +78,7 @@ * @return boolean true just a variable to notify PHP that everything * is good. */ - private function close() + public function close() { //$this->log("_close()"); return true; @@ -90,7 +90,7 @@ * @param string $id an id of current session * @return string */ - private function read($id) + public function read($id) { //$this->log("_read($id)"); $dbh = $this->_connect(); @@ -133,7 +133,7 @@ * @return boolean true if data saved successfully and false * otherwise. */ - private function write($id, $sess_data) + public function write($id, $sess_data) { if (defined("WIKI_XMLRPC") or defined("WIKI_SOAP")) return false; @@ -196,7 +196,7 @@ * @param string $id * @return boolean true */ - private function destroy($id) + public function destroy($id) { $table = $this->_table; $dbh = $this->_connect(); @@ -213,7 +213,7 @@ * @param int $maxlifetime session's time to live. * @return boolean true */ - private function gc($maxlifetime) + public function gc($maxlifetime) { $table = $this->_table; $threshold = time() - $maxlifetime; Modified: trunk/lib/WikiDB/backend/ADODB.php =================================================================== --- trunk/lib/WikiDB/backend/ADODB.php 2014-07-17 15:47:03 UTC (rev 8981) +++ trunk/lib/WikiDB/backend/ADODB.php 2014-07-17 16:12:36 UTC (rev 8982) @@ -1208,7 +1208,7 @@ * Calls can be nested. The tables won't be unlocked until * _unlock_database() is called as many times as _lock_database(). */ - protected function lock($tables, $write_lock = true) + public function lock($tables, $write_lock = true) { $this->_dbh->StartTrans(); if ($this->_lock_count++ == 0) { @@ -1233,7 +1233,7 @@ * * @see _lock_database */ - protected function unlock($tables = false, $force = false) + public function unlock($tables = false, $force = false) { if ($this->_lock_count == 0) { $this->_current_lock = false; Modified: trunk/lib/WikiDB/backend/PDO.php =================================================================== --- trunk/lib/WikiDB/backend/PDO.php 2014-07-17 15:47:03 UTC (rev 8981) +++ trunk/lib/WikiDB/backend/PDO.php 2014-07-17 16:12:36 UTC (rev 8982) @@ -1165,7 +1165,7 @@ * Calls can be nested. The tables won't be unlocked until * _unlock_database() is called as many times as _lock_database(). */ - protected function lock($tables, $write_lock = true) + public function lock($tables, $write_lock = true) { if ($this->_lock_count++ == 0) { $this->_current_lock = $tables; @@ -1194,7 +1194,7 @@ * * @see _lock_database */ - protected function unlock($tables = false, $force = false) + public function unlock($tables = false, $force = false) { if ($this->_lock_count == 0) { $this->_current_lock = false; Modified: trunk/lib/WikiDB/backend/file.php =================================================================== --- trunk/lib/WikiDB/backend/file.php 2014-07-17 15:47:03 UTC (rev 8981) +++ trunk/lib/WikiDB/backend/file.php 2014-07-17 16:12:36 UTC (rev 8982) @@ -400,7 +400,7 @@ /** * Rename all files for this page */ - protected function rename_page($pagename, $to) + public function rename_page($pagename, $to) { $version = _getLatestVersion($pagename); foreach ($this->_dir_names as $type => $path) { @@ -590,7 +590,7 @@ * * @return object A WikiDB_backend_iterator. */ - protected function get_all_pages($include_empty = false, $sortby = '', $limit = '', $exclude = '') + public function get_all_pages($include_empty = false, $sortby = '', $limit = '', $exclude = '') { require_once 'lib/PageList.php'; $this->_loadLatestVersions(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |