ILIAS
release_4-3 Revision
|
File for Parser and related classes. More...
File for Parser and related classes.
XHTML sanitizer for MediaWiki.
PHP Parser - Processes wiki markup (which uses a more user-friendly syntax, such as "[[link]]" for making links), and provides a one-way transformation of that wiki markup it into XHTML output / markup (which in turn the browser understands, and can display).
There are four main entry points into the Parser class: parse() produces HTML output preSaveTransform(). produces altered wiki markup. transformMsg() performs brace substitution on MediaWiki messages preprocess() removes HTML comments and expands templates
Globals used: objects: $wgLang, $wgContLang
NOT $wgArticle, $wgUser or $wgTitle. Keep them away!
settings: $wgUseTex*, $wgUseDynamicDates*, $wgInterwikiMagic*, $wgNamespacesWithSubpages, $wgAllowExternalImages*, $wgLocaltimezone, $wgAllowSpecialInclusion*, $wgMaxArticleSize*
* only within ParserOptions
Copyright (C) 2002-2005 Brion Vibber brion et al @pob ox.co mhttp://www.mediawiki.org/
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