configSQL() public méthode

Subnodes will be parsed and added to both the Horde defaults and the Custom configuration parts.
public configSQL ( string $ctx, DomNode $node = null, string $switchname = 'driverconfig' ) : array
$ctx string The context of the tag.
$node DomNode The DomNode representation of the tag.
$switchname string If DomNode is not set, the value of the tag's switchname attribute.
Résultat array An associative array with the SQL configuration tree.
Exemple #1
0
 /**
  * Asks for the database settings and creates the SQL configuration.
  */
 public function configDb()
 {
     $this->_cli->writeln();
     $this->_cli->writeln($this->_cli->bold('Configuring database settings'));
     $this->_cli->writeln();
     $sql_config = $this->_config->configSQL('');
     $vars = new Horde_Variables();
     new Horde_Config_Form($vars, 'horde', true);
     $this->_cli->question($vars, 'sql', 'phptype', $sql_config['switch']['custom']['fields']['phptype']);
     $this->writeConfig($vars);
 }