protected function getPostVariables() { $vars = array(); foreach ($_POST as $k => $v) { $vars[$k] = $v; } return $vars; }