<?php

use WikiLingo\Plugin\Base;
use WikiLingo\Expression\Plugin;

class WikiPluginStub extends Base
{
	public function __construct()
	{
		$this->allowLines = true;
	}

	public function render(WikiLingo\Expression\Plugin &$plugin, &$body, &$parser)
	{
		$element = $parser->element('WikiLingo\\Expression\\Plugin', 'span');
		$element->detailedAttributes['data-plugin-type'] = $plugin->type;
		$element->detailedAttributes['data-plugin-parameters'] = urlencode(json_encode($plugin->parametersRaw));
		$element->useDetailedAttributes = true;
		$element->staticChildren[] = $renderedChildren;
		$output = $element->render();
		return $output;
	}
}
<?php

use WikiLingo\Plugin\Base;
use WikiLingo\Expression\Plugin;

class WikiPluginStub extends Base
{
	public function __construct()
	{
		$this->allowLines = true;
	}

	public function render(WikiLingo\Expression\Plugin &$plugin, &$body = '', &$renderer, &$parser)
	{
		$element = $parser->element('WikiLingo\\Expression\\Plugin', 'span');
		$element->detailedAttributes['data-plugin-type'] = $plugin->type;
		$element->detailedAttributes['data-plugin-parameters'] = urlencode(json_encode($plugin->parametersRaw));
		$element->useDetailedAttributes = true;
		$element->staticChildren[] = $plugin->renderedChildren;
		$output = $element->render();
		return $output;
	}
}
Make stub match extended parent
[FIX] Make stub match extended parent

git-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@51055 b456876b-0849-0410-b77d-98878d47e9d5
