Form.php
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;
    }
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;
    }
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 ; }
Check if the form was posted
Check if the form was posted