From 324f2d672b395428ded6636ed067a86c2b2a36ea Mon Sep 17 00:00:00 2001 From: rurban Date: Mon, 17 Mar 2008 19:07:51 +0000 Subject: [PATCH] No sort links on dumped pages. checked="CHECKED" Add defaults for all supported Columns, like locked, minor, ... git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@6011 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/PageList.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/lib/PageList.php b/lib/PageList.php index b6f2f8c71..69ed5cabb 100644 --- a/lib/PageList.php +++ b/lib/PageList.php @@ -1,4 +1,4 @@ -_field, PageList::sortable_columns()) */) { + if (!$WikiTheme->DUMP_MODE /* or in_array($this->_field, PageList::sortable_columns()) */) { // TODO: add to multiple comma-delimited sortby args: "+hits,+pagename" $src = false; $noimg_src = $WikiTheme->getButtonURL('no_order'); @@ -313,7 +313,7 @@ class _PageList_Column_checkbox extends _PageList_Column { return HTML::input(array('type' => 'checkbox', 'name' => $this->_name . "[$pagename]", 'value' => 1, - 'checked' => 'checked')); + 'checked' => 'CHECKED')); } else { return HTML::input(array('type' => 'checkbox', 'name' => $this->_name . "[$pagename]", @@ -634,6 +634,7 @@ class PageList { // Here we declare which options are supported, so that // the calling plugin may simply merge this with its own default arguments function supportedArgs () { + // Todo: add all supported Columns, like locked, minor, ... return array(// Currently supported options: /* what columns, what pages */ 'info' => 'pagename', @@ -672,6 +673,15 @@ class PageList { // the number of all results, linked to the given pagename. 'nopage' => false, // for info=col omit the pagename column + // array_keys($this->_types). filter by columns: e.g. locked=1 + 'pagename' => null, // string regex + 'locked' => null, + 'minor' => null, + 'mtime' => null, + 'hits' => null, + 'size' => null, + 'version' => null, + 'markup' => null, ); } @@ -1689,6 +1699,9 @@ extends PageList { } // $Log: not supported by cvs2svn $ +// Revision 1.153 2008/02/15 19:52:04 vargenau +// Corrected bug #1847961: In AllPages with a limit, last page is incorrectly numbered +// // Revision 1.152 2008/02/15 19:46:12 vargenau // Allow sorting by hits; test method_exists // -- 2.45.0