/**
* set parameters for the generation process
*
* @param boolean $completeXML switch for complete xml with all plugins
* @param string $plugin name of the plugin
*
* @return void
*/
public function __construct($completeXML, $plugin = null)
{
parent::__construct();
if ($completeXML) {
$this->_plugins = CommonFunctions::getPlugins();
}
if ($plugin !== null) {
if (!is_array($plugin)) {
$plugin = array($plugin);
}
foreach ($plugin as $p) {
if (in_array(strtolower($p), CommonFunctions::getPlugins())) {
$this->_plugins[] = $p;
}
$this->_pluginRequest = true;
}
}
$this->_prepare();
}