Backend\Modules\Locale\Actions\Index::loadForm PHP Method

loadForm() private method

Load the form
private loadForm ( )
    private function loadForm()
    {
        $this->frm = new BackendForm('filter', BackendModel::createURLForAction(), 'get');
        $this->frm->addDropdown('application', array('' => '-', 'Backend' => 'Backend', 'Frontend' => 'Frontend'), $this->filter['application']);
        $this->frm->addText('name', $this->filter['name']);
        $this->frm->addText('value', $this->filter['value']);
        $this->frm->addMultiCheckbox('language', BackendLocaleModel::getLanguagesForMultiCheckbox($this->isGod), $this->filter['language'], 'noFocus');
        $this->frm->addMultiCheckbox('type', BackendLocaleModel::getTypesForMultiCheckbox(), $this->filter['type'], 'noFocus');
        $this->frm->addDropdown('module', BackendModel::getModulesForDropDown(), $this->filter['module']);
        $this->frm->getField('module')->setDefaultElement('-');
        // manually parse fields
        $this->frm->parse($this->tpl);
    }