/**
* Constructor method to instantiate the form object
*
* @param string $action
* @param string $method
* @return self
*/
public function __construct($action = null, $method = 'post')
{
$lang = isset($_GET['lang']) ? $_GET['lang'] : 'en_US';
if (!defined('POP_LANG')) {
define('POP_LANG', $lang);
}
$this->i18n = I18n::factory();
$this->i18n->loadFile(__DIR__ . '/../../../data/assets/i18n/' . $this->i18n->getLanguage() . '.xml');
$this->initFieldsValues = $this->getInitFields();
parent::__construct($action, $method, null, ' ');
$this->setAttributes('id', 'install-form');
}