Exemple #1
0
:</label>
				<input type="text" name="connect[name]" id="param-name" value="<?php 
echo $this->escape($this->connection->name);
?>
" />
			</div>

			<?php 
Lang::load('plg_filesystem_' . $this->connection->provider->get('alias'), PATH_APP . DS . 'plugins' . DS . 'filesystem' . DS . $this->connection->provider->get('alias'));
$xml = PATH_APP . DS . 'plugins' . DS . 'filesystem' . DS . $this->connection->provider->get('alias') . DS . $this->connection->provider->get('alias') . '.xml';
if (!file_exists($xml)) {
    Lang::load('plg_filesystem_' . $this->connection->provider->get('alias'), PATH_CORE . DS . 'plugins' . DS . 'filesystem' . DS . $this->connection->provider->get('alias'));
    $xml = PATH_CORE . DS . 'plugins' . DS . 'filesystem' . DS . $this->connection->provider->get('alias') . DS . $this->connection->provider->get('alias') . '.xml';
}
$form = new Hubzero\Form\Form('connection', array('control' => 'connect'));
$form->loadFile($xml, false, '//config');
$data = array();
if ($data = $this->connection->get('params')) {
    $data = json_decode($data, true);
    //$data = new Hubzero\Config\Registry($data);
    //$form->bind($data);
}
$data = new Hubzero\Config\Registry($data);
$fieldSet = $form->getFieldset('credentials');
if (count($fieldSet)) {
    ?>
				<fieldset class="panelform">
					<legend><?php 
    echo Lang::txt('Credentials');
    ?>
</legend>