Beispiel #1
0
 function setUp()
 {
     global $prefs;
     $prefs['feature_jison_wiki_parser'] = 'y';
     $this->parser = new JisonParser_Wiki_Handler();
     $this->parser->setOption(array('skipPageCache' => true));
     $this->called = 0;
     $this->provider();
     WikiPlugin_Negotiator_Wiki::$standardRelativePath = "../wiki-plugins/wikiplugin_";
     WikiPlugin_Negotiator_Wiki::$zendRelativePath = "../core/WikiPlugin/";
     WikiPlugin_Negotiator_Wiki::$checkZendPaths = false;
     $this->removeFakePage();
     $this->createFakePage();
 }
Beispiel #2
0
 function executeAwaiting(&$input)
 {
     foreach (self::$parserLevels as &$level) {
         self::$currentParserLevel = $level;
         foreach (self::$pluginsAwaitingExecution as &$pluginDetails) {
             $this->setDetails($pluginDetails);
             if (self::$currentParserLevel == $level && strstr($input, $this->key)) {
                 $this->parser->plugin[$this->key] = $this->body;
                 $result = $this->parser->parsePlugin($this->execute());
                 $input = str_replace($this->key, $result, $input);
                 unset($pluginDetails);
             }
         }
     }
 }
Beispiel #3
0
 function plugin_get_list($includeReal = true, $includeAlias = true)
 {
     return WikiPlugin_Negotiator_Wiki::getList($includeReal, $includeAlias);
 }