aboutsummaryrefslogtreecommitdiff
path: root/classes/helpers/CinisisHttpHelper.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/helpers/CinisisHttpHelper.php')
-rw-r--r--classes/helpers/CinisisHttpHelper.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/classes/helpers/CinisisHttpHelper.php b/classes/helpers/CinisisHttpHelper.php
new file mode 100644
index 0000000..34ff349
--- /dev/null
+++ b/classes/helpers/CinisisHttpHelper.php
@@ -0,0 +1,15 @@
+<?php
+
+class CinisisHttpHelper {
+ static function get_numeric_arg($name) {
+ // Get the query parameter.
+ if (isset($_GET[$name]) && ! empty($_GET[$name])) {
+ $arg = (int) $_GET[$name];
+ }
+ else {
+ $arg = 1;
+ }
+
+ return $arg;
+ }
+}