/** * Return a specified request variable from the GET or POST vars. * @param string $key a single key * @return string a single value * @access private */ public static function _getRequestVariable($key) { $keyPath = preg_split('/[\[\]]/', $key, -1, PREG_SPLIT_NO_EMPTY); $result = MyOOS_Utilities::_internalGetRequestVariable($keyPath, $_GET); if (isset($result)) { return $result; } return MyOOS_Utilities::_internalGetRequestVariable($keyPath, $_POST); }