CTConfiguration::getContent PHP Метод

getContent() публичный Метод

Compiles and returns module configuration page content
public getContent ( ) : string
Результат string
    public function getContent()
    {
        if (Tools::isSubmit('submit' . $this->name)) {
            $this->postProcess();
        }
        $moduleUrl = $this->context->link->getAdminLink('AdminModules') . '&configure=' . $this->name;
        $fieldSets = array('general' => array('title' => $this->l('Module settings'), 'fields' => $this->getOptionFields(), 'buttons' => array('cancelBlock' => array('title' => $this->l('Cancel'), 'href' => $moduleUrl, 'icon' => 'process-icon-cancel')), 'submit' => array('name' => 'submit' . $this->name, 'title' => $this->l('Save'))));
        $h = new HelperOptions();
        $h->token = Tools::getAdminTokenLite('AdminModules');
        $h->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
        $h->id = Tab::getIdFromClassName('AdminTools');
        return $h->generateOptions($fieldSets);
    }