Gregwar\Formidable\Form::posted PHP Method

posted() public method

Check if the form was posted
public posted ( $method = 'post' )
    public function posted($method = 'post')
    {
        $postIndicator = $this->getPostIndicator();
        if ($postIndicator->posted($method)) {
            if ($method == 'post') {
                $this->setValues($_POST, $_FILES);
            } else {
                if ($method == 'get') {
                    $this->setValues($_GET);
                }
            }
            return true;
        }
        return false;
    }