mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-30 11:06:55 +00:00
Use standard GPL file header
Change-Id: Ic49d45d0a0cb640d40486735c95f13cc6e29063f
This commit is contained in:
parent
d85ca412b7
commit
50c10d1fcb
|
@ -1,4 +1,20 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* This program 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.
|
||||||
|
*
|
||||||
|
* This program 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 this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
* http://www.gnu.org/copyleft/gpl.html
|
||||||
|
*/
|
||||||
|
|
||||||
class ApiCategoryTree extends ApiBase {
|
class ApiCategoryTree extends ApiBase {
|
||||||
public function execute() {
|
public function execute() {
|
||||||
|
|
|
@ -1,15 +1,31 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Core functions for the CategoryTree extension, an AJAX based gadget
|
* © 2006-2007 Daniel Kinzler
|
||||||
* to display the category structure of a wiki
|
*
|
||||||
|
* This program 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.
|
||||||
|
*
|
||||||
|
* This program 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 this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
* http://www.gnu.org/copyleft/gpl.html
|
||||||
*
|
*
|
||||||
* @file
|
* @file
|
||||||
* @ingroup Extensions
|
* @ingroup Extensions
|
||||||
* @author Daniel Kinzler, brightbyte.de
|
* @author Daniel Kinzler, brightbyte.de
|
||||||
* @copyright © 2006-2007 Daniel Kinzler
|
|
||||||
* @license GPL-2.0-or-later
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Core functions for the CategoryTree extension, an AJAX based gadget
|
||||||
|
* to display the category structure of a wiki
|
||||||
|
*/
|
||||||
class CategoryTree {
|
class CategoryTree {
|
||||||
public $mOptions = [];
|
public $mOptions = [];
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,22 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* This program 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.
|
||||||
|
*
|
||||||
|
* This program 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 this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
* http://www.gnu.org/copyleft/gpl.html
|
||||||
|
*
|
||||||
|
* @file
|
||||||
|
*/
|
||||||
|
|
||||||
class CategoryTreeCategoryPage extends CategoryPage {
|
class CategoryTreeCategoryPage extends CategoryPage {
|
||||||
public $mCategoryViewerClass = CategoryTreeCategoryViewer::class;
|
public $mCategoryViewerClass = CategoryTreeCategoryViewer::class;
|
||||||
|
|
|
@ -1,4 +1,22 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* This program 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.
|
||||||
|
*
|
||||||
|
* This program 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 this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
* http://www.gnu.org/copyleft/gpl.html
|
||||||
|
*
|
||||||
|
* @file
|
||||||
|
*/
|
||||||
|
|
||||||
class CategoryTreeCategoryViewer extends CategoryViewer {
|
class CategoryTreeCategoryViewer extends CategoryViewer {
|
||||||
public $child_cats;
|
public $child_cats;
|
||||||
|
|
|
@ -1,14 +1,30 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constants for use with the hideprefix option,
|
* © 2006 Daniel Kinzler
|
||||||
* defining when the namespace prefix should be hidden.
|
*
|
||||||
|
* This program 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.
|
||||||
|
*
|
||||||
|
* This program 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 this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
* http://www.gnu.org/copyleft/gpl.html
|
||||||
*
|
*
|
||||||
* @file
|
* @file
|
||||||
* @ingroup Extensions
|
* @ingroup Extensions
|
||||||
* @author Daniel Kinzler, brightbyte.de
|
* @author Daniel Kinzler, brightbyte.de
|
||||||
* @copyright © 2006 Daniel Kinzler
|
*/
|
||||||
* @license GPL-2.0-or-later
|
|
||||||
|
/**
|
||||||
|
* Constants for use with the hideprefix option,
|
||||||
|
* defining when the namespace prefix should be hidden.
|
||||||
*/
|
*/
|
||||||
class CategoryTreeHidePrefix {
|
class CategoryTreeHidePrefix {
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,31 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Hooks for the CategoryTree extension, an AJAX based gadget
|
* © 2006-2008 Daniel Kinzler and others
|
||||||
* to display the category structure of a wiki
|
*
|
||||||
|
* This program 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.
|
||||||
|
*
|
||||||
|
* This program 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 this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
* http://www.gnu.org/copyleft/gpl.html
|
||||||
*
|
*
|
||||||
* @file
|
* @file
|
||||||
* @ingroup Extensions
|
* @ingroup Extensions
|
||||||
* @author Daniel Kinzler, brightbyte.de
|
* @author Daniel Kinzler, brightbyte.de
|
||||||
* @copyright © 2006-2008 Daniel Kinzler and others
|
|
||||||
* @license GPL-2.0-or-later
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hooks for the CategoryTree extension, an AJAX based gadget
|
||||||
|
* to display the category structure of a wiki
|
||||||
|
*/
|
||||||
class CategoryTreeHooks {
|
class CategoryTreeHooks {
|
||||||
|
|
||||||
public static function shouldForceHeaders() {
|
public static function shouldForceHeaders() {
|
||||||
|
|
|
@ -1,13 +1,29 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constants for use with the mode, defining what should be shown in the tree.
|
* © 2006 Daniel Kinzler
|
||||||
|
*
|
||||||
|
* This program 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.
|
||||||
|
*
|
||||||
|
* This program 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 this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
* http://www.gnu.org/copyleft/gpl.html
|
||||||
*
|
*
|
||||||
* @file
|
* @file
|
||||||
* @ingroup Extensions
|
* @ingroup Extensions
|
||||||
* @author Daniel Kinzler, brightbyte.de
|
* @author Daniel Kinzler, brightbyte.de
|
||||||
* @copyright © 2006 Daniel Kinzler
|
*/
|
||||||
* @license GPL-2.0-or-later
|
|
||||||
|
/**
|
||||||
|
* Constants for use with the mode, defining what should be shown in the tree.
|
||||||
*/
|
*/
|
||||||
class CategoryTreeMode {
|
class CategoryTreeMode {
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,31 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Special page for the CategoryTree extension, an AJAX based gadget
|
* © 2006 Daniel Kinzler
|
||||||
* to display the category structure of a wiki
|
*
|
||||||
|
* This program 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.
|
||||||
|
*
|
||||||
|
* This program 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 this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
* http://www.gnu.org/copyleft/gpl.html
|
||||||
*
|
*
|
||||||
* @file
|
* @file
|
||||||
* @ingroup Extensions
|
* @ingroup Extensions
|
||||||
* @author Daniel Kinzler, brightbyte.de
|
* @author Daniel Kinzler, brightbyte.de
|
||||||
* @copyright © 2006 Daniel Kinzler
|
|
||||||
* @license GPL-2.0-or-later
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Special page for the CategoryTree extension, an AJAX based gadget
|
||||||
|
* to display the category structure of a wiki
|
||||||
|
*/
|
||||||
class CategoryTreePage extends SpecialPage {
|
class CategoryTreePage extends SpecialPage {
|
||||||
public $target = '';
|
public $target = '';
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,26 @@
|
||||||
/**
|
/**
|
||||||
* Stylesheet for the CategoryTree extension.
|
* Stylesheet for the CategoryTree extension.
|
||||||
*
|
*
|
||||||
|
* © 2006 Daniel Kinzler
|
||||||
|
*
|
||||||
|
* This program 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.
|
||||||
|
*
|
||||||
|
* This program 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 this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
* http://www.gnu.org/copyleft/gpl.html
|
||||||
|
*
|
||||||
* @file
|
* @file
|
||||||
* @ingroup Extensions
|
* @ingroup Extensions
|
||||||
* @author Daniel Kinzler, brightbyte.de
|
* @author Daniel Kinzler, brightbyte.de
|
||||||
* @copyright © 2006 Daniel Kinzler
|
|
||||||
* @licence GNU General Public Licence 2.0 or later
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.client-js #mw-subcategories ul {
|
.client-js #mw-subcategories ul {
|
||||||
|
|
|
@ -1,11 +1,26 @@
|
||||||
/**
|
/**
|
||||||
* JavaScript for the CategoryTree extension.
|
* JavaScript for the CategoryTree extension.
|
||||||
*
|
*
|
||||||
|
* © 2006 Daniel Kinzler
|
||||||
|
*
|
||||||
|
* This program 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.
|
||||||
|
*
|
||||||
|
* This program 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 this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
* http://www.gnu.org/copyleft/gpl.html
|
||||||
|
*
|
||||||
* @file
|
* @file
|
||||||
* @ingroup Extensions
|
* @ingroup Extensions
|
||||||
* @author Daniel Kinzler, brightbyte.de
|
* @author Daniel Kinzler, brightbyte.de
|
||||||
* @copyright © 2006 Daniel Kinzler
|
|
||||||
* @licence GNU General Public Licence 2.0 or later
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint no-use-before-define: ["error", { "functions": false }] */
|
/* eslint no-use-before-define: ["error", { "functions": false }] */
|
||||||
|
|
Loading…
Reference in a new issue