protected function executePluginParser($pluginName)
	{
		$pluginConfig = $this->pluginsConfig[$pluginName];
		if (isset($pluginConfig['quickMatch']) && strpos($this->text, $pluginConfig['quickMatch']) === false)
		{
			return;
		}

		$matches = [];
		if (isset($pluginConfig['regexp']))
		{
			$matches = $this->getMatches($pluginConfig['regexp'], $pluginConfig['regexpLimit']);
			if (empty($matches))
			{
				return;
			}
		}

		// Execute the plugin's parser, which will add tags via $this->addStartTag() and others
		call_user_func($this->getPluginParser($pluginName), $this->text, $matches);
	}
protected function executePluginParser($pluginName)
	{
		$pluginConfig = $this->pluginsConfig[$pluginName];
		if (isset($pluginConfig['quickMatch']) && strpos($this->text, $pluginConfig['quickMatch']) === false)
		{
			return;
		}

		$matches = [];
		if (isset($pluginConfig['regexp']))
		{
			$matches = $this->getMatches($pluginConfig['regexp'], $pluginConfig['regexpLimit']);
			if (empty($matches))
			{
				return;
			}
		}

		// Execute the plugin's parser, which will add tags via $this->addStartTag() and others
		call_user_func($this->getPluginParser($pluginName), $this->text, $matches);
	}
protected function executePluginParser ( $ pluginName ) { $ pluginConfig = $ this -> pluginsConfig [ $ pluginName ] ; if ( isset ( $ pluginConfig [ 'quickMatch' ] ) && strpos ( $ this -> text , $ pluginConfig [ 'quickMatch' ] ) === false ) { return ; } $ matches = [ ] ; if ( isset ( $ pluginConfig [ 'regexp' ] ) ) { $ matches = $ this -> getMatches ( $ pluginConfig [ 'regexp' ] , $ pluginConfig [ 'regexpLimit' ] ) ; if ( empty ( $ matches ) ) { return ; } } // Execute the plugin's parser, which will add tags via $this->addStartTag() and others call_user_func ( $ this -> getPluginParser ( $ pluginName ) , $ this -> text , $ matches ) ; }
Execute given plugin

@param  string $pluginName Plugin's name
@return void
Execute given plugin