lhc/web/wiklou.git
19 years agoSince 'php parserTests.php' is too long for my lazy fingers, added a Makefile.
Brion Vibber [Thu, 23 Sep 2004 07:14:14 +0000 (07:14 +0000)]
Since 'php parserTests.php' is too long for my lazy fingers, added a Makefile.
'make test' to run the parser tests, 'make doc' to run phpdoc generation.

19 years agoChange name of output files to make the diff output a bit clearer
Brion Vibber [Thu, 23 Sep 2004 07:05:37 +0000 (07:05 +0000)]
Change name of output files to make the diff output a bit clearer

19 years agoSet language to en for tests.
Brion Vibber [Thu, 23 Sep 2004 07:04:06 +0000 (07:04 +0000)]
Set language to en for tests.

19 years agoadd $wgSitename global for testing magic variables
Wil Mahan [Thu, 23 Sep 2004 06:43:43 +0000 (06:43 +0000)]
add $wgSitename global for testing magic variables

19 years agoAdd tests for magic variables (using $wgSitename) and nonexistant templates.
Wil Mahan [Thu, 23 Sep 2004 06:41:46 +0000 (06:41 +0000)]
Add tests for magic variables (using $wgSitename) and nonexistant templates.
Tests for existing templates will be a bit more difficult. ;)

19 years agoRemove a space for parser checker consistency
Wil Mahan [Thu, 23 Sep 2004 06:29:46 +0000 (06:29 +0000)]
Remove a space for parser checker consistency

19 years agoadd two more block-level tests
Wil Mahan [Thu, 23 Sep 2004 06:13:16 +0000 (06:13 +0000)]
add two more block-level tests

19 years agoSplit up internal links test cases, add a couple more
Wil Mahan [Thu, 23 Sep 2004 05:59:27 +0000 (05:59 +0000)]
Split up internal links test cases, add a couple more

19 years agoAdd --quick option to suppress display of diffs.
Brion Vibber [Thu, 23 Sep 2004 05:45:17 +0000 (05:45 +0000)]
Add --quick option to suppress display of diffs.

19 years agoAdd color to the output; assumes a more or less ANSI-flavored terminal.
Brion Vibber [Thu, 23 Sep 2004 05:40:10 +0000 (05:40 +0000)]
Add color to the output; assumes a more or less ANSI-flavored terminal.
Won't display color on Windows by default; use --color or --color=no to override.

19 years agoFix and enable all internal links test cases, including two bugs
Wil Mahan [Thu, 23 Sep 2004 05:12:47 +0000 (05:12 +0000)]
Fix and enable all internal links test cases, including two bugs

19 years agoAdd regression test case for bug 554
Brion Vibber [Thu, 23 Sep 2004 05:08:20 +0000 (05:08 +0000)]
Add regression test case for bug 554

19 years agoSeparate out the external links tests
Brion Vibber [Thu, 23 Sep 2004 02:31:18 +0000 (02:31 +0000)]
Separate out the external links tests

19 years agoAdd a newline to the diff temp files to remove the annoying message about it
Brion Vibber [Thu, 23 Sep 2004 02:30:56 +0000 (02:30 +0000)]
Add a newline to the diff temp files to remove the annoying message about it

19 years agoDon't produce a title attribute for external links when the link text is
Brion Vibber [Thu, 23 Sep 2004 02:25:41 +0000 (02:25 +0000)]
Don't produce a title attribute for external links when the link text is
the same as the URL. (We already don't produce a print expansion for these.)

19 years agoCleaning up checkin conflict: remove Wil's parserTransform() function as
Brion Vibber [Thu, 23 Sep 2004 00:45:49 +0000 (00:45 +0000)]
Cleaning up checkin conflict: remove Wil's parserTransform() function as
this is superceded by setting the globals to a known initial state.

19 years agoFix test to match change to Skin.php
Brion Vibber [Thu, 23 Sep 2004 00:39:30 +0000 (00:39 +0000)]
Fix test to match change to Skin.php

19 years agoTweak tests back into shape
Brion Vibber [Thu, 23 Sep 2004 00:38:18 +0000 (00:38 +0000)]
Tweak tests back into shape

19 years agoRemove a single space that breaks a parser test
Wil Mahan [Thu, 23 Sep 2004 00:37:10 +0000 (00:37 +0000)]
Remove a single space that breaks a parser test

19 years agoParser test improvements:
Brion Vibber [Thu, 23 Sep 2004 00:33:07 +0000 (00:33 +0000)]
Parser test improvements:
* Show a diff of the expected and actual output rather than dumping large swaths of HTML
* Set exit code depending on success
* Standardize some global settings such as the URL paths which affect output
* Added copyright/GPL notice to test script code

19 years agomake some more tests work
Wil Mahan [Thu, 23 Sep 2004 00:31:22 +0000 (00:31 +0000)]
make some more tests work

19 years agoallow simple variables in expected test results; use tidy on expected result when
Wil Mahan [Thu, 23 Sep 2004 00:30:28 +0000 (00:30 +0000)]
allow simple variables in expected test results; use tidy on expected result when
$wgUseTidy is enabled, which makes it possible to disregard cosmetic formatting
discrepancies

19 years agofix php notices about call-time by reference
Antoine Musso [Wed, 22 Sep 2004 22:03:24 +0000 (22:03 +0000)]
fix php notices about call-time by reference

19 years agoUse OutputPage to replace link placeholders; add links, quotes tests
Wil Mahan [Wed, 22 Sep 2004 21:54:19 +0000 (21:54 +0000)]
Use OutputPage to replace link placeholders; add links, quotes tests
(not working at the moment)

19 years agoRemove the comment check I added (wasn't necessary); add a way do disable tests.
Wil Mahan [Wed, 22 Sep 2004 21:22:51 +0000 (21:22 +0000)]
Remove the comment check I added (wasn't necessary); add a way do disable tests.
Add nowiki, comment, and external links tests (some disabled at the moment).

19 years agoDon't unstrip() in internalParse(), because it's already done in parse().
Wil Mahan [Wed, 22 Sep 2004 20:04:11 +0000 (20:04 +0000)]
Don't unstrip() in internalParse(), because it's already done in parse().
This fixes <nowiki>*list item</nowiki>, which was caught thanks to the
parser tester. :)

19 years agoAllow comments beginning with '#' between sections, for more detailed
Wil Mahan [Wed, 22 Sep 2004 19:46:51 +0000 (19:46 +0000)]
Allow comments beginning with '#' between sections, for more detailed
descriptions of the tests.

19 years agoFixed some typos
Jens Frank [Wed, 22 Sep 2004 17:46:13 +0000 (17:46 +0000)]
Fixed some typos

19 years agoSet $fname to prevent warning in edit conflicts
Wil Mahan [Wed, 22 Sep 2004 16:20:34 +0000 (16:20 +0000)]
Set $fname to prevent warning in edit conflicts

19 years agofixed missing </select>
Zheng Zhu [Wed, 22 Sep 2004 13:04:06 +0000 (13:04 +0000)]
fixed missing </select>

19 years agoQuick start on a mindlessly simply parser test suite.
Brion Vibber [Wed, 22 Sep 2004 12:25:40 +0000 (12:25 +0000)]
Quick start on a mindlessly simply parser test suite.

Works on a standalone parser object, not through the globals or the web interface, which is created anew for each test. Pretty primitive so far, but this at least allows accumulation of tests for now.

19 years agoIf $_SERVER['REMOTE_ADDR'] is not set, use 127.0.0.1 for $wgIP.
Brion Vibber [Wed, 22 Sep 2004 11:39:30 +0000 (11:39 +0000)]
If $_SERVER['REMOTE_ADDR'] is not set, use 127.0.0.1 for $wgIP.
This avoids an E_NOTIFY-level warning and avoids having the empty
string set for the IP when running from CLI.

19 years agoOne more time... :P shouldn't commit this late at night.
Brion Vibber [Wed, 22 Sep 2004 11:37:16 +0000 (11:37 +0000)]
One more time... :P shouldn't commit this late at night.

19 years agoWhoops, typo in making variable name legible. ;)
Brion Vibber [Wed, 22 Sep 2004 11:33:56 +0000 (11:33 +0000)]
Whoops, typo in making variable name legible. ;)
But at least it *ran*. ;)

19 years agoUndo fatal mistake added in revision 1.82.
Brion Vibber [Wed, 22 Sep 2004 11:30:43 +0000 (11:30 +0000)]
Undo fatal mistake added in revision 1.82.

DO NOT die if the skin class isn't found! This breaks maintenance
scripts and can cause a user account to be unrecoverable
except by SQL manipulation if a previously valid skin name
is no longer valid.

19 years agoonly list languages with corresponding language files in the UI selection part
Zheng Zhu [Wed, 22 Sep 2004 06:30:16 +0000 (06:30 +0000)]
only list languages with corresponding language files in the UI selection part

19 years agoreplacing wgLang with wgContLang
Zheng Zhu [Wed, 22 Sep 2004 05:20:51 +0000 (05:20 +0000)]
replacing wgLang with wgContLang

19 years agoAdd missing functions for language variants
Jens Frank [Wed, 22 Sep 2004 05:11:56 +0000 (05:11 +0000)]
Add missing functions for language variants

19 years agosending the content language code as Content-language
Zheng Zhu [Wed, 22 Sep 2004 04:24:50 +0000 (04:24 +0000)]
sending the content language code as Content-language

19 years agomade some more wfMsg() to wfMsgForContent changes
Zheng Zhu [Wed, 22 Sep 2004 04:09:31 +0000 (04:09 +0000)]
made some more wfMsg() to wfMsgForContent changes

19 years agoget variants from the content language object
Zheng Zhu [Wed, 22 Sep 2004 03:56:27 +0000 (03:56 +0000)]
get variants from the content language object

19 years agouse wfMsgForContent() when creating new titles from text
Zheng Zhu [Wed, 22 Sep 2004 03:55:08 +0000 (03:55 +0000)]
use wfMsgForContent() when creating new titles from text

19 years agoswitch to wfMsgForContent()
Zheng Zhu [Wed, 22 Sep 2004 03:53:13 +0000 (03:53 +0000)]
switch to wfMsgForContent()

19 years agouse wgContLang to convert among different language variants
Zheng Zhu [Wed, 22 Sep 2004 03:51:32 +0000 (03:51 +0000)]
use wgContLang to convert among different language variants

19 years agonew wfMsg* functions to use the wgContLang object for translating content related...
Zheng Zhu [Wed, 22 Sep 2004 03:49:23 +0000 (03:49 +0000)]
new wfMsg* functions to use the wgContLang object for translating content related messages

19 years agoAdding a wgContLang object to handle message translation for the content of the site...
Zheng Zhu [Wed, 22 Sep 2004 03:32:56 +0000 (03:32 +0000)]
Adding a wgContLang object to handle message translation for the content of the site; wgLang should be used exclusively for UI messages.

19 years agosingle quotes !!1!
Antoine Musso [Wed, 22 Sep 2004 01:48:04 +0000 (01:48 +0000)]
single quotes !!1!

19 years agoFix http://bugzilla.wikipedia.org/show_bug.cgi?id=459 Sorting tabindex.
Antoine Musso [Wed, 22 Sep 2004 01:41:53 +0000 (01:41 +0000)]
Fix bugzilla.wikipedia.org/show_bug.cgi?id=459  Sorting tabindex.

19 years agoPatch from http://bugzilla.wikipedia.org/show_bug.cgi?id=465 by ��var Arnfj��r��...
Antoine Musso [Wed, 22 Sep 2004 01:36:01 +0000 (01:36 +0000)]
Patch from bugzilla.wikipedia.org/show_bug.cgi?id=465 by ��var Arnfj��r�� Bjarmason <avarab@gmail.com>

19 years agoFix http://bugzilla.wikipedia.org/show_bug.cgi?id=490 Implement a header in Special...
Antoine Musso [Wed, 22 Sep 2004 00:58:41 +0000 (00:58 +0000)]
Fix bugzilla.wikipedia.org/show_bug.cgi?id=490  Implement a header in Special:Category

19 years agoFix http://bugzilla.wikipedia.org/show_bug.cgi?id=528 . New shorter "nosuchuser"...
Antoine Musso [Wed, 22 Sep 2004 00:42:09 +0000 (00:42 +0000)]
Fix bugzilla.wikipedia.org/show_bug.cgi?id=528 . New shorter "nosuchuser" message ("nosuchusershort") when an admin tries to block a non existent user.

19 years agoNow it is straightforward to fix bug 89, subst: template parameters.
Wil Mahan [Wed, 22 Sep 2004 00:15:54 +0000 (00:15 +0000)]
Now it is straightforward to fix bug 89, subst: template parameters.
Initial patch thanks to alanyst@gmail.com.

19 years agoTwo somewhat experimental changes before I fix bug 89:
Wil Mahan [Tue, 21 Sep 2004 23:56:25 +0000 (23:56 +0000)]
Two somewhat experimental changes before I fix bug 89:
1) Don't suspend the LinkCache when including templates;
because we don't call replaceInternalLinks() anymore,
it doesn't do anything.
2) Don't call strip(), removeHTMLcomments(), or replaceVariables()
on template parameters in argSubstitution(). The first two
should already be done on the article including the template,
and the third is unnecessary because it isn't possible to
pass templates as parameters to templates.

These seem to work, but if anybody notices any problems,
please let me know.

19 years agoRemoving variableSubstitution broke passing magic variables as template
Wil Mahan [Tue, 21 Sep 2004 23:30:46 +0000 (23:30 +0000)]
Removing variableSubstitution broke passing magic variables as template
parameters, so restore it. Instead, remove magic variable substitution
from braceSubstitution(), and modify variableSubstitution to handle magic
variables prefixed by SUBST in the pre-save transform.

19 years agofix tab
Antoine Musso [Tue, 21 Sep 2004 19:47:31 +0000 (19:47 +0000)]
fix tab

19 years agoremove extraneous wfDebug
River Tarnell [Tue, 21 Sep 2004 19:05:46 +0000 (19:05 +0000)]
remove extraneous wfDebug

19 years agodon't error on certain inputs if $matches[] doesn't have a last element
River Tarnell [Tue, 21 Sep 2004 19:03:39 +0000 (19:03 +0000)]
don't error on certain inputs if $matches[] doesn't have a last element

19 years agouse comments instead of __ so we don't scare the users if erroneous ones creep in
River Tarnell [Tue, 21 Sep 2004 18:20:56 +0000 (18:20 +0000)]
use comments instead of __ so we don't scare the users if erroneous ones creep in

19 years agofix a problem by not inserting __MWTEMPLATESECTION for section titles that don't...
River Tarnell [Tue, 21 Sep 2004 18:15:37 +0000 (18:15 +0000)]
fix a problem by not inserting __MWTEMPLATESECTION for section titles that don't exist

19 years agoInstead of storing entire link attributes in wikitext for
Jens Frank [Tue, 21 Sep 2004 17:57:33 +0000 (17:57 +0000)]
Instead of storing entire link attributes in wikitext for
deleayed link colouring, store pointer to an entry in array wgLinkHolders. Fixes BUG#493 and should
be faster.

Forgot to submit this this morning. Sorry!!

19 years agoFix http://bugzilla.wikipedia.org/show_bug.cgi?id=538.
Antoine Musso [Tue, 21 Sep 2004 17:51:19 +0000 (17:51 +0000)]
Fix bugzilla.wikipedia.org/show_bug.cgi?id=538.
Reuploading image should work now.

19 years agoforwardport fixes for template section edit links from rel1_3
River Tarnell [Tue, 21 Sep 2004 16:56:48 +0000 (16:56 +0000)]
forwardport fixes for template section edit links from rel1_3

19 years ago* flips p-nav and p-personal
Antoine Musso [Tue, 21 Sep 2004 16:13:02 +0000 (16:13 +0000)]
* flips p-nav and p-personal
* no bullets for menu list items

19 years agofix: inclusion of non-existent template is broken.
River Tarnell [Tue, 21 Sep 2004 12:11:17 +0000 (12:11 +0000)]
fix: inclusion of non-existent template is broken.
this still appears to be broken, but I think it was broken before this code existed as well.

19 years agofix for several problems found by Eloquence:
River Tarnell [Tue, 21 Sep 2004 11:54:45 +0000 (11:54 +0000)]
fix for several problems found by Eloquence:
section edit links in nested templates didn't work;
edit links for subsections in templates didn't work.

pending: links for non-existent templates are broken.

19 years agoimplement editSectionLinkForOther (required for latest parser changed)
River Tarnell [Tue, 21 Sep 2004 09:47:42 +0000 (09:47 +0000)]
implement editSectionLinkForOther (required for latest parser changed)

19 years agomake section headers in templates have edit links that point to the template.
River Tarnell [Tue, 21 Sep 2004 08:31:25 +0000 (08:31 +0000)]
make section headers in templates have edit links that point to the template.

19 years agofix bug where __MWTEMPLATESECTION__ was being used with subst:
River Tarnell [Tue, 21 Sep 2004 06:54:18 +0000 (06:54 +0000)]
fix bug where __MWTEMPLATESECTION__ was being used with subst:

19 years agounneeded "" around single variable removed
Jens Frank [Tue, 21 Sep 2004 06:07:55 +0000 (06:07 +0000)]
unneeded "" around single variable removed

19 years agoConvert many comments to phpdoc style, and document some more functions
Wil Mahan [Tue, 21 Sep 2004 05:49:12 +0000 (05:49 +0000)]
Convert many comments to phpdoc style, and document some more functions

19 years agoCompletely remove variableSubstitution(), because magic variable
Wil Mahan [Tue, 21 Sep 2004 05:12:44 +0000 (05:12 +0000)]
Completely remove variableSubstitution(), because magic variable
replacement is redundantly done in braceSubstitution(). Aside
from removing unnecessary code, this will make it easier to fix
bug 89, parameters to {{subst:}} templates

19 years agodon't put edit links on sections from included templates.
River Tarnell [Tue, 21 Sep 2004 04:33:51 +0000 (04:33 +0000)]
don't put edit links on sections from included templates.
template section headings have __MWTEMPLATESECTION__ added to them;
formatHeadings removes this and doesn't add the edit link for
such sections.  this is a rather hackish fix, but is probably
the best we can do with the current parser setup.

it would be nice (but not important) if this could be extended to
let users prevent edit links for certain sections.

fixes bug #266

19 years agocorrected testing the existence of an object
Zheng Zhu [Tue, 21 Sep 2004 00:48:45 +0000 (00:48 +0000)]
corrected testing the existence of an object

19 years agobugfix: Special:Allpages "next" link should include &namespace= parameter
Arne Heizmann [Tue, 21 Sep 2004 00:17:12 +0000 (00:17 +0000)]
bugfix: Special:Allpages "next" link should include &namespace= parameter

19 years agoInstead of storing entire link attributes in wikitext for
Jens Frank [Mon, 20 Sep 2004 23:02:08 +0000 (23:02 +0000)]
Instead of storing entire link attributes in wikitext for
deleayed link colouring, store pointer to an entry in array wgLinkHolders. Fixes BUG#493 and should
be faster.

19 years agoBug 506: use $_SERVER[] instead of getenv() because the latter doesn't work
Wil Mahan [Mon, 20 Sep 2004 21:53:21 +0000 (21:53 +0000)]
Bug 506: use $_SERVER[] instead of getenv() because the latter doesn't work
on IIS in ISAPI mode.

19 years agoFix bug 479 : parsing [[RFC 1234]] as internal link
Antoine Musso [Mon, 20 Sep 2004 21:41:26 +0000 (21:41 +0000)]
Fix bug 479 : parsing [[RFC 1234]] as internal link
I forgot to commit it :(

19 years agobug 511
Antoine Musso [Mon, 20 Sep 2004 18:29:34 +0000 (18:29 +0000)]
bug 511

19 years agoFix http://bugzilla.wikipedia.org/show_bug.cgi?id=511 . Stop showing whatlinkshere...
Antoine Musso [Mon, 20 Sep 2004 18:26:51 +0000 (18:26 +0000)]
Fix bugzilla.wikipedia.org/show_bug.cgi?id=511 . Stop showing whatlinkshere and relatedchanges links for special pages.

19 years agoFix http://bugzilla.wikipedia.org/show_bug.cgi?id=511 . Stop showing whatlinkshere...
Antoine Musso [Mon, 20 Sep 2004 17:42:12 +0000 (17:42 +0000)]
Fix bugzilla.wikipedia.org/show_bug.cgi?id=511 . Stop showing whatlinkshere and relatedchanges links for special pages.

19 years agoFix http://bugzilla.wikipedia.org/show_bug.cgi?id=538
Antoine Musso [Mon, 20 Sep 2004 16:23:10 +0000 (16:23 +0000)]
Fix bugzilla.wikipedia.org/show_bug.cgi?id=538
Return an 'emptyfile' error page if filename is empty.

19 years agocomments / single quotes.
Antoine Musso [Mon, 20 Sep 2004 16:10:48 +0000 (16:10 +0000)]
comments / single quotes.

19 years agoFix small corner case in HTML comment removal
Wil Mahan [Mon, 20 Sep 2004 16:05:37 +0000 (16:05 +0000)]
Fix small corner case in HTML comment removal

19 years agobug 479 : parsing [[RFC 1234]] as internal link
Antoine Musso [Mon, 20 Sep 2004 15:54:10 +0000 (15:54 +0000)]
bug 479 : parsing [[RFC 1234]] as internal link

19 years agono real change. (rm trailing whitespace, convert leading spaces to tabs)
Arne Heizmann [Mon, 20 Sep 2004 14:55:25 +0000 (14:55 +0000)]
no real change. (rm trailing whitespace, convert leading spaces to tabs)

19 years agocleaned up
Tim Starling [Mon, 20 Sep 2004 11:16:56 +0000 (11:16 +0000)]
cleaned up

19 years agonew non-stub Indonesian language file
Tim Starling [Mon, 20 Sep 2004 10:34:07 +0000 (10:34 +0000)]
new non-stub Indonesian language file

19 years agosuppress warnings before calling $wgLang->getMessage(), because many language files...
Tim Starling [Mon, 20 Sep 2004 10:30:18 +0000 (10:30 +0000)]
suppress warnings before calling $wgLang->getMessage(), because many language files generate notices

19 years agoBUG#487 Use Wil's custom function to replace HTML comments instead of
Jens Frank [Mon, 20 Sep 2004 06:17:04 +0000 (06:17 +0000)]
BUG#487 Use Wil's custom function to replace HTML comments instead of
a regular expression. It is much more robust for different test cases, e.g.
*abc
<!-- comment -->def

19 years agoFixed broken code.
Jens Frank [Mon, 20 Sep 2004 05:27:16 +0000 (05:27 +0000)]
Fixed broken code.
> PLEASE TEST YOUR PATCHES BEFORE COMMITTING THEM

19 years agoadded a language variant field to the page rendering hash, but only for languages...
Zheng Zhu [Mon, 20 Sep 2004 05:22:45 +0000 (05:22 +0000)]
added a language variant field to the page rendering hash, but only for languages that support multiple variants.

19 years agoa bit better toc
Antoine Musso [Mon, 20 Sep 2004 02:45:19 +0000 (02:45 +0000)]
a bit better toc

19 years agodiff and history color fixes
Antoine Musso [Mon, 20 Sep 2004 02:36:29 +0000 (02:36 +0000)]
diff and history color fixes

19 years agofix colors when using thumbnails
Antoine Musso [Mon, 20 Sep 2004 01:56:15 +0000 (01:56 +0000)]
fix colors when using thumbnails

19 years ago* Updated the message for 'yourvariant' to reflect that it is meant for the language...
Zheng Zhu [Mon, 20 Sep 2004 01:47:10 +0000 (01:47 +0000)]
* Updated the message for 'yourvariant' to reflect that it is meant for the language variant of the content
* Updated getPreferredVariant() to return some meaningful default values

19 years agonew skin using a dark background. Originaly made by Sorwena and Sorkhiri for the...
Antoine Musso [Mon, 20 Sep 2004 01:33:39 +0000 (01:33 +0000)]
new skin using a dark background. Originaly made by Sorwena and Sorkhiri for the Amethyst guild

19 years agoremoved getMonth*() and getWeekdayname() since these are now handled through wfMsg()
Zheng Zhu [Mon, 20 Sep 2004 00:32:19 +0000 (00:32 +0000)]
removed getMonth*() and getWeekdayname() since these are now handled through wfMsg()

19 years agoTatar week days and months
Arne Heizmann [Mon, 20 Sep 2004 00:22:43 +0000 (00:22 +0000)]
Tatar week days and months

19 years agoDie horribly if a skin class doesn't exist. Will help skins builders.
Antoine Musso [Sun, 19 Sep 2004 22:59:23 +0000 (22:59 +0000)]
Die horribly if a skin class doesn't exist. Will help skins builders.

19 years agoMigrate to a QueryPage class
Antoine Musso [Sun, 19 Sep 2004 21:36:55 +0000 (21:36 +0000)]
Migrate to a QueryPage class