From: <var...@us...> - 2013-04-26 14:10:59
|
Revision: 8776 http://sourceforge.net/p/phpwiki/code/8776 Author: vargenau Date: 2013-04-26 14:10:54 +0000 (Fri, 26 Apr 2013) Log Message: ----------- private Modified Paths: -------------- trunk/lib/plugin/WikiAdminRename.php trunk/lib/plugin/WikiAdminSearchReplace.php trunk/lib/plugin/WikiPoll.php trunk/lib/plugin/YouTube.php Modified: trunk/lib/plugin/WikiAdminRename.php =================================================================== --- trunk/lib/plugin/WikiAdminRename.php 2013-04-26 13:53:49 UTC (rev 8775) +++ trunk/lib/plugin/WikiAdminRename.php 2013-04-26 14:10:54 UTC (rev 8776) @@ -55,7 +55,7 @@ )); } - function renameHelper($name, $from, $to, $options = false) + private function renameHelper($name, $from, $to, $options = false) { if (isset($options['regex'])) { return preg_replace('/' . $from . '/' . (isset($options['icase']) ? 'i' : ''), $to, $name); @@ -66,7 +66,7 @@ } } - function renamePages(&$dbi, &$request, $pages, $from, $to, $updatelinks = false, + private function renamePages(&$dbi, &$request, $pages, $from, $to, $updatelinks = false, $createredirect = false) { $result = HTML::div(); @@ -259,7 +259,7 @@ => WIKIAUTH_ADMIN)))); } - function checkBox(&$post_args, $name, $msg) + private function checkBox(&$post_args, $name, $msg) { $id = 'admin_rename-' . $name; $checkbox = HTML::input(array('type' => 'checkbox', @@ -271,7 +271,7 @@ return HTML::div($checkbox, ' ', HTML::label(array('for' => $id), $msg)); } - function renameForm(&$header, $post_args, $singlepage) + private function renameForm(&$header, $post_args, $singlepage) { $table = HTML::table(); $this->tablePush($table, _("Rename") . " " . _("from") . _(": "), Modified: trunk/lib/plugin/WikiAdminSearchReplace.php =================================================================== --- trunk/lib/plugin/WikiAdminSearchReplace.php 2013-04-26 13:53:49 UTC (rev 8775) +++ trunk/lib/plugin/WikiAdminSearchReplace.php 2013-04-26 14:10:54 UTC (rev 8776) @@ -53,7 +53,7 @@ )); } - function replaceHelper(&$dbi, &$request, $pagename, $from, $to, $case_exact = true, $regex = false) + private function replaceHelper(&$dbi, &$request, $pagename, $from, $to, $case_exact = true, $regex = false) { $page = $dbi->getPage($pagename); if ($page->exists()) { // don't replace default contents @@ -86,7 +86,7 @@ return false; } - function searchReplacePages(&$dbi, &$request, $pages, $from, $to) + private function searchReplacePages(&$dbi, &$request, $pages, $from, $to) { if (empty($from)) return HTML::p(HTML::strong(fmt("Error: Empty search string."))); $result = HTML::div(); @@ -221,7 +221,7 @@ : HiddenInputs(array('require_authority_for_post' => WIKIAUTH_ADMIN))); } - function checkBox(&$post_args, $name, $msg) + private function checkBox(&$post_args, $name, $msg) { $id = 'admin_replace-' . $name; $checkbox = HTML::input(array('type' => 'checkbox', @@ -233,7 +233,7 @@ return HTML::div($checkbox, ' ', HTML::label(array('for' => $id), $msg)); } - function replaceForm(&$header, $post_args) + private function replaceForm(&$header, $post_args) { $header->pushContent(HTML::div(array('class' => 'hint'), _("Replace all occurences of the given string in the content of all pages.")), Modified: trunk/lib/plugin/WikiPoll.php =================================================================== --- trunk/lib/plugin/WikiPoll.php 2013-04-26 13:53:49 UTC (rev 8775) +++ trunk/lib/plugin/WikiPoll.php 2013-04-26 14:10:54 UTC (rev 8776) @@ -124,7 +124,7 @@ return; } - function str2array($var, $obarray = false) + private function str2array($var, $obarray = false) { if (!$obarray) $obarray = $GLOBALS; $i = 0; @@ -235,7 +235,7 @@ return $html; } - function bar($percent) + private function bar($percent) { global $WikiTheme; return HTML(HTML::img(array('src' => $WikiTheme->getImageUrl('leftbar'), @@ -248,7 +248,7 @@ 'alt' => '>'))); } - function doPoll($page, $request, $answers, $readonly = false) + private function doPoll($page, $request, $answers, $readonly = false) { $question = $this->_args['question']; $answer = $this->_args['answer']; @@ -312,7 +312,7 @@ } - function getResult($page, $i, $j) + private function getResult($page, $i, $j) { $poll = $page->get("poll"); @$count = $poll['data']['count'][$i][$j]; @@ -321,7 +321,7 @@ return array($percent, $count, $all); } - function storeResult($page, $i, $j) + private function storeResult($page, $i, $j) { $poll = $page->get("poll"); if (!$poll) { Modified: trunk/lib/plugin/YouTube.php =================================================================== --- trunk/lib/plugin/YouTube.php 2013-04-26 13:53:49 UTC (rev 8775) +++ trunk/lib/plugin/YouTube.php 2013-04-26 14:10:54 UTC (rev 8776) @@ -190,7 +190,7 @@ return $object; } - function Daily_pick() + private function Daily_pick() { if ($xml = url_get_contents("http://www.youtube.com/categories")) { if (preg_match('/<div class="heading"><b>Pick of The Day<\/b><\/div>.*?<a href="\/watch\?v=(\w+)">/s', $xml, $m)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |