Prose\FromForm::initActions PHP Method

initActions() protected method

protected initActions ( )
    protected function initActions()
    {
        // shorthand
        $formId = $this->args[0];
        // find the form
        $formElement = fromBrowser()->get()->elementById($formId);
        // is it really a form?
        if (strtolower($formElement->name()) !== 'form') {
            throw new E5xx_ActionFailed('form');
        }
        // yes, it really is a form
        $this->formId = $formId;
        $this->setTopElement($formElement);
    }
FromForm