icingaweb2/application/forms/LdapDiscoveryForm.php

35 lines
724 B
PHP
Raw Normal View History

2014-10-09 10:20:07 +02:00
<?php
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
2014-10-09 10:20:07 +02:00
namespace Icinga\Forms;
2014-10-09 10:20:07 +02:00
use Icinga\Web\Form;
class LdapDiscoveryForm extends Form
{
/**
* Initialize this page
*/
public function init()
{
$this->setName('form_ldap_discovery');
}
/**
* @see Form::createElements()
*/
public function createElements(array $formData)
{
$this->addElement(
'text',
'domain',
array(
'label' => $this->translate('Search Domain'),
'description' => $this->translate('Search this domain for records of available servers.'),
2014-10-09 10:20:07 +02:00
)
);
return $this;
}
}