Backend\Modules\Pages\Actions\Add::parse PHP Метод

parse() защищенный Метод

Parse
protected parse ( )
    protected function parse()
    {
        parent::parse();
        // parse some variables
        $this->tpl->assign('templates', $this->templates);
        $this->tpl->assign('isGod', $this->isGod);
        $this->tpl->assign('positions', $this->positions);
        $this->tpl->assign('extrasData', json_encode(BackendExtensionsModel::getExtrasData()));
        $this->tpl->assign('extrasById', json_encode(BackendExtensionsModel::getExtras()));
        $this->tpl->assign('prefixURL', rtrim(BackendPagesModel::getFullURL(1), '/'));
        $this->tpl->assign('formErrors', (string) $this->frm->getErrors());
        $this->tpl->assign('showTags', $this->showTags());
        // get default template id
        $defaultTemplateId = $this->get('fork.settings')->get('Pages', 'default_template', 1);
        // assign template
        $this->tpl->assignArray($this->templates[$defaultTemplateId], 'template');
        // parse the form
        $this->frm->parse($this->tpl);
        // parse the tree
        $this->tpl->assign('tree', BackendPagesModel::getTreeHTML());
    }