Source for file jWiki.class.php

Documentation is available at jWiki.class.php

  1. <?php
  2. /**
  3. @package    jelix
  4. @subpackage utils
  5. @author     Laurent Jouanneau
  6. @copyright  2006-2014 Laurent Jouanneau
  7. @link       http://www.jelix.org
  8. @licence    GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
  9. */
  10.  
  11. /**
  12.  * include the wikirenderer class
  13.  */
  14. require_once(LIB_PATH.'wikirenderer/WikiRenderer.lib.php');
  15.  
  16. /**
  17.  * transform a wiki text into a document (html or else)
  18.  * @package    jelix
  19.  * @subpackage utils
  20.  * @link http://wikirenderer.berlios.de/
  21.  * @since 1.0b1
  22.  */
  23. class jWiki extends  WikiRenderer {
  24.  
  25.     function __construct$config=null){
  26.  
  27.         if(is_string($config)){
  28.             $f WIKIRENDERER_PATH.'rules/'.basename($config).'.php';
  29.             if(file_exists($f)){
  30.                 require_once($f);
  31.                 $this->confignew $config();
  32.             }else{
  33.                 $this->config jApp::loadPlugin($config'wr_rules''.rule.php'$config);
  34.                 if (is_null($this->config))
  35.                     throw new Exception('Rules "'.$config.'" not found for jWiki');
  36.             }
  37.             $this->config->charset jApp::config()->charset;
  38.         }elseif(is_object($config)){
  39.             $this->config=$config;
  40.         }else{
  41.             require_once(WIKIRENDERER_PATH 'rules/wr3_to_xhtml.php');
  42.             $this->confignew wr3_to_xhtml();
  43.             $this->config->charset jApp::config()->charset;
  44.         }
  45.  
  46.         $this->inlineParser new WikiInlineParser($this->config);
  47.  
  48.         foreach($this->config->bloctags as $name){
  49.             $this->_blocList[]new $name($this);
  50.         }
  51.    }
  52. }

Documentation generated on Wed, 04 Jan 2017 22:57:17 +0100 by phpDocumentor 1.4.3