Source for file jWiki.class.php
Documentation is available at jWiki.class.php
- <?php
- /**
- * @package jelix
- * @subpackage utils
- * @author Laurent Jouanneau
- * @copyright 2006-2014 Laurent Jouanneau
- * @link http://www.jelix.org
- * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
- */
-
- /**
- * include the wikirenderer class
- */
- require_once(LIB_PATH.'wikirenderer/WikiRenderer.lib.php');
-
- /**
- * transform a wiki text into a document (html or else)
- * @package jelix
- * @subpackage utils
- * @link http://wikirenderer.berlios.de/
- * @since 1.0b1
- */
- class jWiki extends WikiRenderer {
-
- function __construct( $config=null){
-
- if(is_string($config)){
- $f = WIKIRENDERER_PATH.'rules/'.basename($config).'.php';
- if(file_exists($f)){
- require_once($f);
- $this->config= new $config();
- }else{
- $this->config = jApp::loadPlugin($config, 'wr_rules', '.rule.php', $config);
- if (is_null($this->config))
- throw new Exception('Rules "'.$config.'" not found for jWiki');
- }
- $this->config->charset = jApp::config()->charset;
- }elseif(is_object($config)){
- $this->config=$config;
- }else{
- require_once(WIKIRENDERER_PATH . 'rules/wr3_to_xhtml.php');
- $this->config= new wr3_to_xhtml();
- $this->config->charset = jApp::config()->charset;
- }
-
- $this->inlineParser = new WikiInlineParser($this->config);
-
- foreach($this->config->bloctags as $name){
- $this->_blocList[]= new $name($this);
- }
- }
- }
Documentation generated on Mon, 26 Oct 2015 21:56:45 +0100 by phpDocumentor 1.4.3