From: <var...@us...> - 2016-10-07 13:27:17
|
Revision: 9944 http://sourceforge.net/p/phpwiki/code/9944 Author: vargenau Date: 2016-10-07 13:27:15 +0000 (Fri, 07 Oct 2016) Log Message: ----------- Add standard file header Modified Paths: -------------- trunk/lib/WikiDB/backend/dumb/AllRevisionsIter.php trunk/lib/WikiDB/backend/dumb/BackLinkIter.php trunk/lib/WikiDB/backend/dumb/MostPopularIter.php trunk/lib/WikiDB/backend/dumb/MostRecentIter.php trunk/lib/WikiDB/backend/dumb/TextSearchIter.php trunk/lib/WikiDB/backend/dumb/WantedPagesIter.php Modified: trunk/lib/WikiDB/backend/dumb/AllRevisionsIter.php =================================================================== --- trunk/lib/WikiDB/backend/dumb/AllRevisionsIter.php 2016-10-07 13:01:46 UTC (rev 9943) +++ trunk/lib/WikiDB/backend/dumb/AllRevisionsIter.php 2016-10-07 13:27:15 UTC (rev 9944) @@ -1,4 +1,27 @@ <?php +/** + * Copyright © 2001 Jeff Dairiki + * Copyright © 2004,2008 Reini Urban + * + * This file is part of PhpWiki. + * + * PhpWiki is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * PhpWiki is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with PhpWiki; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * SPDX-License-Identifier: GPL-2.0+ + * + */ /** * An iterator which returns all revisions of page. @@ -6,6 +29,7 @@ * This iterator uses only the WikiDB_backend::get_versiondata interface * of a WikiDB_backend, and so it should work with all backends. */ + class WikiDB_backend_dumb_AllRevisionsIter extends WikiDB_backend_iterator { Modified: trunk/lib/WikiDB/backend/dumb/BackLinkIter.php =================================================================== --- trunk/lib/WikiDB/backend/dumb/BackLinkIter.php 2016-10-07 13:01:46 UTC (rev 9943) +++ trunk/lib/WikiDB/backend/dumb/BackLinkIter.php 2016-10-07 13:27:15 UTC (rev 9944) @@ -1,4 +1,26 @@ <?php +/** + * Copyright © 2001 Jeff Dairiki + * + * This file is part of PhpWiki. + * + * PhpWiki is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * PhpWiki is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with PhpWiki; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * SPDX-License-Identifier: GPL-2.0+ + * + */ require_once 'lib/WikiDB/backend.php'; @@ -8,6 +30,7 @@ * * This is mostly here for testing, 'cause it's slow,slow,slow. */ + class WikiDB_backend_dumb_BackLinkIter extends WikiDB_backend_iterator { Modified: trunk/lib/WikiDB/backend/dumb/MostPopularIter.php =================================================================== --- trunk/lib/WikiDB/backend/dumb/MostPopularIter.php 2016-10-07 13:01:46 UTC (rev 9943) +++ trunk/lib/WikiDB/backend/dumb/MostPopularIter.php 2016-10-07 13:27:15 UTC (rev 9944) @@ -1,4 +1,29 @@ <?php +/** + * Copyright © 2001-2002 Jeff Dairiki + * Copyright © 2002 Lawrence Akka + * Copyright © 2004,2006 Reini Urban + * + * This file is part of PhpWiki. + * + * PhpWiki is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * PhpWiki is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with PhpWiki; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * SPDX-License-Identifier: GPL-2.0+ + * + */ + require_once 'lib/WikiDB/backend.php'; /** @@ -8,6 +33,7 @@ * backend::get_all_pages() and backend::get_pagedata() * methods. */ + class WikiDB_backend_dumb_MostPopularIter extends WikiDB_backend_iterator { Modified: trunk/lib/WikiDB/backend/dumb/MostRecentIter.php =================================================================== --- trunk/lib/WikiDB/backend/dumb/MostRecentIter.php 2016-10-07 13:01:46 UTC (rev 9943) +++ trunk/lib/WikiDB/backend/dumb/MostRecentIter.php 2016-10-07 13:27:15 UTC (rev 9944) @@ -1,4 +1,29 @@ <?php +/** + * Copyright © 2001 Jeff Dairiki + * Copyright © 2002 Lawrence Akka + * Copyright © 2004-2007 Reini Urban + * + * This file is part of PhpWiki. + * + * PhpWiki is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * PhpWiki is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with PhpWiki; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * SPDX-License-Identifier: GPL-2.0+ + * + */ + require_once 'lib/WikiDB/backend.php'; /** @@ -6,6 +31,7 @@ * * This iterator will work with any backends. */ + class WikiDB_backend_dumb_MostRecentIter extends WikiDB_backend_iterator { Modified: trunk/lib/WikiDB/backend/dumb/TextSearchIter.php =================================================================== --- trunk/lib/WikiDB/backend/dumb/TextSearchIter.php 2016-10-07 13:01:46 UTC (rev 9943) +++ trunk/lib/WikiDB/backend/dumb/TextSearchIter.php 2016-10-07 13:27:15 UTC (rev 9944) @@ -1,4 +1,28 @@ <?php +/** + * Copyright © 2001 Jeff Dairiki + * Copyright © 2004-2005,2007 Reini Urban + * + * This file is part of PhpWiki. + * + * PhpWiki is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * PhpWiki is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with PhpWiki; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * SPDX-License-Identifier: GPL-2.0+ + * + */ + class WikiDB_backend_dumb_TextSearchIter extends WikiDB_backend_iterator { Modified: trunk/lib/WikiDB/backend/dumb/WantedPagesIter.php =================================================================== --- trunk/lib/WikiDB/backend/dumb/WantedPagesIter.php 2016-10-07 13:01:46 UTC (rev 9943) +++ trunk/lib/WikiDB/backend/dumb/WantedPagesIter.php 2016-10-07 13:27:15 UTC (rev 9944) @@ -1,10 +1,34 @@ <?php /** + * Copyright © 2004,2007 Reini Urban + * + * This file is part of PhpWiki. + * + * PhpWiki is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * PhpWiki is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with PhpWiki; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * SPDX-License-Identifier: GPL-2.0+ + * + */ + +/** * This iterator will work with any WikiDB_backend * which has a working get_links(,'links_from') method. * * This is mostly here for testing, 'cause it's slow,slow,slow. */ + class WikiDB_backend_dumb_WantedPagesIter extends WikiDB_backend_iterator { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-10-06 15:49:38
|
Revision: 10620 http://sourceforge.net/p/phpwiki/code/10620 Author: vargenau Date: 2021-10-06 15:49:37 +0000 (Wed, 06 Oct 2021) Log Message: ----------- lib/WikiDB/backend/dumb: add fields definition Modified Paths: -------------- trunk/lib/WikiDB/backend/dumb/AllRevisionsIter.php trunk/lib/WikiDB/backend/dumb/LinkSearchIter.php trunk/lib/WikiDB/backend/dumb/MostPopularIter.php trunk/lib/WikiDB/backend/dumb/MostRecentIter.php trunk/lib/WikiDB/backend/dumb/TextSearchIter.php trunk/lib/WikiDB/backend/dumb/WantedPagesIter.php Modified: trunk/lib/WikiDB/backend/dumb/AllRevisionsIter.php =================================================================== --- trunk/lib/WikiDB/backend/dumb/AllRevisionsIter.php 2021-10-06 14:38:29 UTC (rev 10619) +++ trunk/lib/WikiDB/backend/dumb/AllRevisionsIter.php 2021-10-06 15:49:37 UTC (rev 10620) @@ -34,6 +34,21 @@ extends WikiDB_backend_iterator { /** + * @var WikiDB_backend + */ + private $_backend; + + /** + * @var int + */ + private $_lastversion; + + /** + * @var string + */ + private $_pagename; + + /** * @param WikiDB_backend $backend * @param string $pagename Page whose revisions to get. */ Modified: trunk/lib/WikiDB/backend/dumb/LinkSearchIter.php =================================================================== --- trunk/lib/WikiDB/backend/dumb/LinkSearchIter.php 2021-10-06 14:38:29 UTC (rev 10619) +++ trunk/lib/WikiDB/backend/dumb/LinkSearchIter.php 2021-10-06 15:49:37 UTC (rev 10620) @@ -41,6 +41,47 @@ class WikiDB_backend_dumb_LinkSearchIter extends WikiDB_backend_iterator { + private $_backend; + private $_pages; + private $search; + private $relation; + private $sortby; + + /** + * @var mixed|string + */ + private $exclude; + + /** + * @var WikiDB + */ + private $_dbi; + + /** + * @var string + */ + private $_field; + + private $_page; + + /** + * @var array + */ + private $_links; + + private $linktype; + private $limit; + + /** + * @var bool + */ + private $_want_relations; + + /** + * @var bool + */ + private $_reverse; + function __construct($backend, $pageiter, $search, $linktype, $relation = false, $options = array()) { Modified: trunk/lib/WikiDB/backend/dumb/MostPopularIter.php =================================================================== --- trunk/lib/WikiDB/backend/dumb/MostPopularIter.php 2021-10-06 14:38:29 UTC (rev 10619) +++ trunk/lib/WikiDB/backend/dumb/MostPopularIter.php 2021-10-06 15:49:37 UTC (rev 10620) @@ -37,6 +37,11 @@ class WikiDB_backend_dumb_MostPopularIter extends WikiDB_backend_iterator { + /** + * @var array + */ + private $_pages; + function __construct($backend, $all_pages, $limit) { $this->_pages = array(); Modified: trunk/lib/WikiDB/backend/dumb/MostRecentIter.php =================================================================== --- trunk/lib/WikiDB/backend/dumb/MostRecentIter.php 2021-10-06 14:38:29 UTC (rev 10619) +++ trunk/lib/WikiDB/backend/dumb/MostRecentIter.php 2021-10-06 15:49:37 UTC (rev 10620) @@ -35,6 +35,11 @@ class WikiDB_backend_dumb_MostRecentIter extends WikiDB_backend_iterator { + /** + * @var array + */ + private $_revisions; + function __construct($backend, $pages, $params) { $limit = false; Modified: trunk/lib/WikiDB/backend/dumb/TextSearchIter.php =================================================================== --- trunk/lib/WikiDB/backend/dumb/TextSearchIter.php 2021-10-06 14:38:29 UTC (rev 10619) +++ trunk/lib/WikiDB/backend/dumb/TextSearchIter.php 2021-10-06 15:49:37 UTC (rev 10620) @@ -26,6 +26,27 @@ class WikiDB_backend_dumb_TextSearchIter extends WikiDB_backend_iterator { + private $_backend; + private $_pages; + private $_fulltext; + private $_search; + + /** + * @var int + */ + private $_index; + + private $_stoplist; + + /** + * @var array + */ + private $stoplisted; + + private $_from; + private $_count; + private $_exclude; + function __construct($backend, $pages, $search, $fulltext = false, $options = array()) { Modified: trunk/lib/WikiDB/backend/dumb/WantedPagesIter.php =================================================================== --- trunk/lib/WikiDB/backend/dumb/WantedPagesIter.php 2021-10-06 14:38:29 UTC (rev 10619) +++ trunk/lib/WikiDB/backend/dumb/WantedPagesIter.php 2021-10-06 15:49:37 UTC (rev 10620) @@ -32,6 +32,38 @@ class WikiDB_backend_dumb_WantedPagesIter extends WikiDB_backend_iterator { + private $_allpages; + private $_allpages_array; + + /** + * @var array + */ + private $exclude; + + private $limit; + + /** + * @var int + */ + private $pos; + + private $_backend; + + /** + * @var string + */ + private $sortby; + + /** + * @var int + */ + private $from; + + /** + * @var array + */ + private $pagelinks; + function __construct($backend, $all_pages, $exclude = '', $sortby = '', $limit = '') { $this->_allpages = $all_pages; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |