From: <var...@us...> - 2014-10-06 10:19:38
|
Revision: 9195 http://sourceforge.net/p/phpwiki/code/9195 Author: vargenau Date: 2014-10-06 10:19:30 +0000 (Mon, 06 Oct 2014) Log Message: ----------- Update PHP Doc; type compatibility Modified Paths: -------------- trunk/lib/plugin/GraphViz.php trunk/lib/plugin/RecentChangesCached.php trunk/lib/plugin/SiteMap.php trunk/lib/plugin/VisualWiki.php trunk/lib/wikilens/RatingsDb.php Modified: trunk/lib/plugin/GraphViz.php =================================================================== --- trunk/lib/plugin/GraphViz.php 2014-10-06 10:04:20 UTC (rev 9194) +++ trunk/lib/plugin/GraphViz.php 2014-10-06 10:19:30 UTC (rev 9195) @@ -205,7 +205,7 @@ array(255, 255, 255)); } - function processSource($argarray = false) + function processSource($argarray = array()) { if (empty($this->source)) { // create digraph from pages @@ -240,7 +240,12 @@ return $source; } - function createDotFile($tempfile = '', $argarray = false) + /** + * @param string $tempfile + * @param array $argarray + * @return mixed + */ + function createDotFile($tempfile = '', $argarray = array()) { $this->source = $this->processSource($argarray); if (!$this->source) Modified: trunk/lib/plugin/RecentChangesCached.php =================================================================== --- trunk/lib/plugin/RecentChangesCached.php 2014-10-06 10:04:20 UTC (rev 9194) +++ trunk/lib/plugin/RecentChangesCached.php 2014-10-06 10:19:30 UTC (rev 9195) @@ -79,7 +79,7 @@ // ->box is used to display a fixed-width, narrow version with common header. // Just a limited list of pagenames, without date. // This does not use ->run, to avoid pi construction and deconstruction - function box($args = false, $request = false, $basepage = false, $do_save = false) + function box($args = '', $request = null, $basepage = '', $do_save = false) { if (!$request) $request =& $GLOBALS['request']; if (!isset($args['limit'])) $args['limit'] = 12; Modified: trunk/lib/plugin/SiteMap.php =================================================================== --- trunk/lib/plugin/SiteMap.php 2014-10-06 10:04:20 UTC (rev 9194) +++ trunk/lib/plugin/SiteMap.php 2014-10-06 10:19:30 UTC (rev 9195) @@ -144,7 +144,7 @@ { include_once 'lib/BlockParser.php'; - $args = $this->getArgs($argstr, $request, false); + $args = $this->getArgs($argstr, $request, array()); extract($args); if (!$page) return ''; Modified: trunk/lib/plugin/VisualWiki.php =================================================================== --- trunk/lib/plugin/VisualWiki.php 2014-10-06 10:04:20 UTC (rev 9194) +++ trunk/lib/plugin/VisualWiki.php 2014-10-06 10:19:30 UTC (rev 9195) @@ -397,7 +397,7 @@ * <code>dot</code>. * * @param string $filename - * @param bool $argarray + * @param array $argarray * @internal param string $filename name of the dot file to be created * @internal param float $width width of the output graph in inches * @internal param float $height height of the graph in inches Modified: trunk/lib/wikilens/RatingsDb.php =================================================================== --- trunk/lib/wikilens/RatingsDb.php 2014-10-06 10:04:20 UTC (rev 9194) +++ trunk/lib/wikilens/RatingsDb.php 2014-10-06 10:19:30 UTC (rev 9195) @@ -417,7 +417,7 @@ * If this is null (or left off), the search for ratings * is not restricted by dimension. * - * @param rater The page id of the rater, i.e. page doing the rating. + * @param int $rater The page id of the rater, i.e. page doing the rating. * This is a Wiki page id, often of a user page. * Example: "DanFr" * [optional] @@ -425,21 +425,21 @@ * is not restricted by rater. * TODO: Support an array * - * @param ratee The page id of the ratee, i.e. page being rated. + * @param int $ratee The page id of the ratee, i.e. page being rated. * Example: "DudeWheresMyCar" * [optional] * If this is null (or left off), the search for ratings * is not restricted by ratee. * TODO: Support an array * - * @param orderby An order-by clause with fields and (optionally) ASC + * @param string $orderby An order-by clause with fields and (optionally) ASC * or DESC. * Example: "ratingvalue DESC" * [optional] * If this is null (or left off), the search for ratings * has no guaranteed order * - * @param pageinfo The type of page that has its info returned (i.e., + * @param string $pageinfo The type of page that has its info returned (i.e., * 'pagename', 'hits', and 'pagedata') in the rows. * Example: "rater" * [optional] @@ -448,6 +448,7 @@ * * @return DB iterator with results */ + function sql_get_rating($dimension = null, $rater = null, $ratee = null, $orderby = null, $pageinfo = "ratee") { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |