OSDN Git Service

Import current code.
[osdn-codes/wiki-parser.git] / sfjp / wiki / processor / trac_oneline.php
1 <?php
2 namespace sfjp\Wiki\Processor;
3 class Trac_oneline extends Trac {
4         public $enable_plugin = false;
5
6         public function process($text = null) {
7                 $ret ='';
8                 $ret .= $this->parse_inline($text);
9                 $ret .= $this->clear_inlinestyle();
10                 $ret .= $this->getFormatter()->cleanup();
11                 $this->formatted_text = $ret;
12                 return $this;
13         }
14
15         public function process_plugin($str) {
16                 if ($this->enable_plugin) {
17                         return parent::process_plugin($str);
18                 } else {
19                         return '';
20                 }
21         }
22 }