Merge "Added docu headers to content(handler) files"
This commit is contained in:
commit
a1f1af7119
8 changed files with 162 additions and 2 deletions
|
|
@ -3,7 +3,27 @@
|
|||
* A content object represents page content, e.g. the text to show on a page.
|
||||
* Content objects have no knowledge about how they relate to Wiki pages.
|
||||
*
|
||||
* 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
|
||||
*
|
||||
* @since 1.21
|
||||
*
|
||||
* @file
|
||||
* @ingroup Content
|
||||
*
|
||||
* @author Daniel Kinzler
|
||||
*/
|
||||
abstract class AbstractContent implements Content {
|
||||
|
||||
|
|
@ -391,4 +411,4 @@ abstract class AbstractContent implements Content {
|
|||
public function matchMagicWord( MagicWord $word ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,27 @@
|
|||
* A content object represents page content, e.g. the text to show on a page.
|
||||
* Content objects have no knowledge about how they relate to wiki pages.
|
||||
*
|
||||
* 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
|
||||
*
|
||||
* @since 1.21
|
||||
*
|
||||
* @file
|
||||
* @ingroup Content
|
||||
*
|
||||
* @author Daniel Kinzler
|
||||
*/
|
||||
interface Content {
|
||||
|
||||
|
|
@ -467,4 +487,4 @@ interface Content {
|
|||
# [11:59] <vvv> Hooks are ugly; make CodeHighlighter interface and a
|
||||
# config to set the class which handles syntax highlighting
|
||||
# [12:00] <vvv> And default it to a DummyHighlighter
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,27 @@ class MWContentSerializationException extends MWException {
|
|||
* type), but wikitext content may be represented by a DOM or AST structure in
|
||||
* the future.
|
||||
*
|
||||
* 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
|
||||
*
|
||||
* @since 1.21
|
||||
*
|
||||
* @file
|
||||
* @ingroup Content
|
||||
*
|
||||
* @author Daniel Kinzler
|
||||
*/
|
||||
abstract class ContentHandler {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,26 @@
|
|||
<?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
|
||||
*
|
||||
* @since 1.21
|
||||
*
|
||||
* @file
|
||||
* @ingroup Content
|
||||
*
|
||||
* @author Daniel Kinzler
|
||||
*/
|
||||
class CssContent extends TextContent {
|
||||
public function __construct( $text ) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,27 @@
|
|||
<?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
|
||||
*
|
||||
* @since 1.21
|
||||
*
|
||||
* @file
|
||||
* @ingroup Content
|
||||
*
|
||||
* @author Daniel Kinzler
|
||||
*/
|
||||
class JavaScriptContent extends TextContent {
|
||||
public function __construct( $text ) {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,27 @@
|
|||
* to represent content from the MediaWiki namespace, and that there is no MessageContentHandler. MessageContent
|
||||
* is just intended as glue for wrapping a message programatically.
|
||||
*
|
||||
* 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
|
||||
*
|
||||
* @since 1.21
|
||||
*
|
||||
* @file
|
||||
* @ingroup Content
|
||||
*
|
||||
* @author Daniel Kinzler
|
||||
*/
|
||||
class MessageContent extends AbstractContent {
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,27 @@
|
|||
*
|
||||
* TextContent instances are immutable
|
||||
*
|
||||
* 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
|
||||
*
|
||||
* @since 1.21
|
||||
*
|
||||
* @file
|
||||
* @ingroup Content
|
||||
*
|
||||
* @author Daniel Kinzler
|
||||
*/
|
||||
class TextContent extends AbstractContent {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,26 @@
|
|||
<?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
|
||||
*
|
||||
* @since 1.21
|
||||
*
|
||||
* @file
|
||||
* @ingroup Content
|
||||
*
|
||||
* @author Daniel Kinzler
|
||||
*/
|
||||
class WikitextContent extends TextContent {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue