From: <var...@us...> - 2013-02-06 09:52:29
|
Revision: 8724 http://sourceforge.net/p/phpwiki/code/8724 Author: vargenau Date: 2013-02-06 09:52:26 +0000 (Wed, 06 Feb 2013) Log Message: ----------- Fix typo: HTLM; update Phpdoc; rename _getValue to _getValuePageList when 3 params Modified Paths: -------------- trunk/lib/PageList.php Modified: trunk/lib/PageList.php =================================================================== --- trunk/lib/PageList.php 2013-02-06 09:49:04 UTC (rev 8723) +++ trunk/lib/PageList.php 2013-02-06 09:52:26 UTC (rev 8724) @@ -157,10 +157,10 @@ * An undefined value is defined to be < than the smallest defined value. * This base class _compare only works if the value is simple (e.g., a number). * - * @param $colvala $this->_getValue() of column a - * @param $colvalb $this->_getValue() of column b + * @param mixed $colvala $this->_getValue() of column a + * @param mixed $colvalb $this->_getValue() of column b * - * @return -1 if $a < $b, 1 if $a > $b, 0 otherwise. + * @return int -1 if $a < $b, 1 if $a > $b, 0 otherwise. */ function _compare($colvala, $colvalb) { @@ -234,11 +234,11 @@ { return HTML::td($this->_tdattr, HTML::raw(' '), - $this->_getValue($pagelist, $page_handle, $revision_handle), + $this->_getValuePageList($pagelist, $page_handle, $revision_handle), HTML::raw(' ')); } - function _getValue(&$pagelist, $page_handle, &$revision_handle) + function _getValuePageList($pagelist, $page_handle, &$revision_handle) { if (!$revision_handle or (!$revision_handle->_data['%content'] or $revision_handle->_data['%content'] === true) @@ -299,7 +299,7 @@ $this->_PageList_Column($field, $heading, 'center'); } - function _getValue($pagelist, $page_handle, &$revision_handle) + function _getValuePageList($pagelist, $page_handle, &$revision_handle) { $pagename = $page_handle->getName(); $selected = !empty($pagelist->_selected[$pagename]); @@ -322,7 +322,7 @@ { return HTML::td($this->_tdattr, HTML::raw(' '), - $this->_getValue($pagelist, $page_handle, $revision_handle), + $this->_getValuePageList($pagelist, $page_handle, $revision_handle), HTML::raw(' ')); } @@ -785,7 +785,7 @@ } /** - * @param caption string or HTML + * @param mixed $caption string or HTML */ function setCaption($caption) { @@ -793,7 +793,7 @@ } /** - * @param caption string or HTML + * @param mixed $caption string or HTML */ function addCaption($caption) { @@ -1342,8 +1342,8 @@ * column will only be added the first time, and ignored the succeeding times. * If you wish to add multiple columns of the same type, use addColumnObject(). * - * @param column name - * @return true if column is added, false otherwise + * @param string column name + * @return bool true if column is added, false otherwise */ function _addColumn($column) { @@ -1822,7 +1822,7 @@ function _generateCommaList($style = false) { if (defined($this->_options['commasep'])) - $seperator = HTLM::Raw($this->_options['commasep']); + $seperator = HTML::Raw($this->_options['commasep']); else $seperator = ', '; $html = HTML(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |