Backend\Modules\Blog\Actions\EditComment::loadForm PHP Method

loadForm() private method

Load the form
private loadForm ( )
    private function loadForm()
    {
        // create form
        $this->frm = new BackendForm('editComment');
        // create elements
        $this->frm->addText('author', $this->record['author']);
        $this->frm->addText('email', $this->record['email']);
        $this->frm->addText('website', $this->record['website'], null);
        $this->frm->addTextarea('text', $this->record['text']);
        // assign URL
        $this->tpl->assign('itemURL', BackendModel::getURLForBlock($this->getModule(), 'detail') . '/' . $this->record['post_url'] . '#comment-' . $this->record['post_id']);
        $this->tpl->assign('itemTitle', $this->record['post_title']);
    }