public function getAll($separate = true)
    {
        if ($this->isPost()) {
            $data = $this->getPost();
        }

        if ($this->isGet()) {
            $data = $this->getQuery();
        }

        // Append files also, if we have them
        if ($this->hasFiles()) {
            $files = $this->getFiles();
        } else {
            $files = array();
        }

        if ($separate === false) {
            return array_merge($data, $files);
        } else {
            $result = array();
            $result['data'] = $data;
            $result['files'] = !empty($files) ? $files : array();

            return $result;
        }
    }
public function getAll($separate = true)
    {
        if ($this->isPost()) {
            $data = $this->getPost();
        }

        if ($this->isGet()) {
            $data = $this->getQuery();
        }

        // Append files also, if we have them
        if ($this->hasFiles()) {
            $files = $this->getFiles();
        } else {
            $files = array();
        }

        if ($separate === false) {
            return array_merge($data, $files);
        } else {
            $result = array();
            $result['data'] = $data;
            $result['files'] = !empty($files) ? $files : array();

            return $result;
        }
    }
public function getAll ( $ separate = true ) { if ( $ this -> isPost ( ) ) { $ data = $ this -> getPost ( ) ; } if ( $ this -> isGet ( ) ) { $ data = $ this -> getQuery ( ) ; } // Append files also, if we have them if ( $ this -> hasFiles ( ) ) { $ files = $ this -> getFiles ( ) ; } else { $ files = array ( ) ; } if ( $ separate === false ) { return array_merge ( $ data , $ files ) ; } else { $ result = array ( ) ; $ result [ 'data' ] = $ data ; $ result [ 'files' ] = ! empty ( $ files ) ? $ files : array ( ) ; return $ result ; } }
Returns all request data

@param boolean $separate Whether to separate data from files into distinct resulting array keys
@return array
Returns all request data