/** * Constructor * * @param InputInterface $input The Input * @param DatabaseDriverInterface $db The user form input * @param RegistryInterface $registry The string raw parms text * @param SimpleXMLElement $xmlElement The element in XML corresponding to the parameters * @param SimpleXMLElement $xml The root element * @param PluginTable $pluginObject The plugin object * @param int $tabId The tab id (if there is one) * @param string $maintagname The main name of the tag pf the file * @param string $attrname The attribute name to test for $attrvalue * @param string $attrvalue The attribute value to be tested */ function __construct(InputInterface $input, DatabaseDriverInterface $db, RegistryInterface $registry, SimpleXMLElement $xmlElement = null, SimpleXMLElement $xml = null, PluginTable $pluginObject = null, $tabId = null, $maintagname = 'cbinstall', $attrname = 'type', $attrvalue = 'plugin') { $this->input = $input; $this->_db = $db; $this->setRegistry($registry); $this->_xml = $xmlElement; if ($xml) { $this->_actions = $xml->getElementByPathOrNull('actions'); $this->_types = $xml->getElementByPathOrNull('types'); $this->_views = $xml->getElementByPathOrNull('views'); } $this->_pluginObject = $pluginObject; $this->_tabId = $tabId; $this->_maintagname = $maintagname; $this->_attrname = $attrname; $this->_attrvalue = $attrvalue; }