Swat/SwatForm.php
public function &getFormData()
    {
        $data = null;

        switch ($this->method) {
            case self::METHOD_POST:
                $data = &$_POST;
                break;
            case self::METHOD_GET:
                $data = &$_GET;
                break;
        }

        return $data;
    }
public function &getFormData()
    {
        $data = null;

        switch ($this->method) {
            case self::METHOD_POST:
                $data = &$_POST;
                break;
            case self::METHOD_GET:
                $data = &$_GET;
                break;
        }

        return $data;
    }
public function & getFormData ( ) { $ data = null ; switch ( $ this -> method ) { case self :: METHOD_POST : $ data = & $ _POST ; break ; case self :: METHOD_GET : $ data = & $ _GET ; break ; } return $ data ; }
Returns the super-global array with this form's data

Returns a reference to the super-global array containing this
form's data. The array is chosen based on this form's method.

@return array a reference to the super-global array containing this
form's data.
Returns the super - global array with this form s data