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;
        }
    }